Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistrationStatus ¶
type RegistrationStatus uint32
const ( NotStarted RegistrationStatus = 0 // Set on session creation KeyGenComplete RegistrationStatus = 10000 // Set upon generation of session information PermissioningComplete RegistrationStatus = 20000 // Set upon completion of RegisterWithPermissioning UDBComplete RegistrationStatus = 30000 // Set upon completion of RegisterWithUdb )
func (RegistrationStatus) String ¶
func (rs RegistrationStatus) String() string
stringer for Identity Status
type Session ¶
type Session interface { GetClientVersion() version.Version Get(key string) (*versioned.Object, error) Set(key string, object *versioned.Object) error Delete(key string) error GetKV() *versioned.KV GetCmixGroup() *cyclic.Group GetE2EGroup() *cyclic.Group ForwardRegistrationStatus(regStatus RegistrationStatus) error GetRegistrationStatus() RegistrationStatus SetRegCode(regCode string) GetRegCode() (string, error) SetNDF(def *ndf.NetworkDefinition) GetNDF() *ndf.NetworkDefinition GetTransmissionID() *id.ID GetTransmissionSalt() []byte GetReceptionID() *id.ID GetReceptionSalt() []byte GetReceptionRSA() *rsa.PrivateKey GetTransmissionRSA() *rsa.PrivateKey IsPrecanned() bool SetUsername(username string) error GetUsername() (string, error) PortableUserInfo() user.Info GetTransmissionRegistrationValidationSignature() []byte GetReceptionRegistrationValidationSignature() []byte GetRegistrationTimestamp() time.Time SetTransmissionRegistrationValidationSignature(b []byte) SetReceptionRegistrationValidationSignature(b []byte) SetRegistrationTimestamp(tsNano int64) }
Session object, backed by encrypted versioned.KVc
func InitTestingSession ¶
func InitTestingSession(i interface{}) Session
InitTestingSession object wrapped around a MemStore object. FOR TESTING ONLY
Click to show internal directories.
Click to hide internal directories.