Photon Server API
Public Member Functions | Static Public Member Functions | Properties | List of all members
Photon.Common.Authentication.AuthenticationToken Class Reference
Inheritance diagram for Photon.Common.Authentication.AuthenticationToken:
Photon.SocketServer.Rpc.DataContract

Public Member Functions

 AuthenticationToken (IRpcProtocol protocol, IDictionary< byte, object > dataMembers)
 
 AuthenticationToken ()
 
virtual bool AreEqual (AuthenticationToken rhs)
 
virtual byte[] Serialize ()
 
- Public Member Functions inherited from Photon.SocketServer.Rpc.DataContract
string GetErrorMessage ()
 Gets a message containing descriptive entries for each missing or invalid paramter. More...
 
Dictionary< byte, object > ToDictionary ()
 Converts all properties flagged with the DataMemberAttribute to a dictionary. More...
 

Static Public Member Functions

static AuthenticationToken Deserialize (byte[] data)
 
static bool TryDeserialize (byte[] data, out AuthenticationToken token)
 

Properties

byte Version [get]
 
DateTime ValidTo [get]
 
long ValidToTicks [get, set]
 
string UserId [get, set]
 
Dictionary< string, object > AuthCookie [get, set]
 
string SessionId [get, set]
 
int Flags [get, set]
 
- Properties inherited from Photon.SocketServer.Rpc.DataContract
bool IsValid [get]
 Gets a value indicating whether all operation parameter are initialized. Call the GetErrorMessage method to get a detailed description for all missing parameters. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Photon.SocketServer.Rpc.DataContract
 DataContract (IRpcProtocol protocol, IDictionary< byte, object > dataMembers)
 Initializes a new instance of the DataContract class. The params dictionary is mapped to properties flagged with the DataMemberAttribute. Check the IsValid property after creation to determine if all paramters have been initialized correctly. More...
 
 DataContract ()
 Initializes a new instance of the DataContract class. More...
 
- Protected Attributes inherited from Photon.SocketServer.Rpc.DataContract
string errorMessage
 The error message. More...
 
bool isValid
 The is valid. More...
 

Constructor & Destructor Documentation

Photon.Common.Authentication.AuthenticationToken.AuthenticationToken ( IRpcProtocol  protocol,
IDictionary< byte, object >  dataMembers 
)
inline
Photon.Common.Authentication.AuthenticationToken.AuthenticationToken ( )
inline

Member Function Documentation

virtual bool Photon.Common.Authentication.AuthenticationToken.AreEqual ( AuthenticationToken  rhs)
inlinevirtual
static AuthenticationToken Photon.Common.Authentication.AuthenticationToken.Deserialize ( byte[]  data)
inlinestatic
virtual byte [] Photon.Common.Authentication.AuthenticationToken.Serialize ( )
inlinevirtual
static bool Photon.Common.Authentication.AuthenticationToken.TryDeserialize ( byte[]  data,
out AuthenticationToken  token 
)
inlinestatic

Property Documentation

Dictionary<string, object> Photon.Common.Authentication.AuthenticationToken.AuthCookie
getset
int Photon.Common.Authentication.AuthenticationToken.Flags
getset
string Photon.Common.Authentication.AuthenticationToken.SessionId
getset
string Photon.Common.Authentication.AuthenticationToken.UserId
getset
DateTime Photon.Common.Authentication.AuthenticationToken.ValidTo
get
long Photon.Common.Authentication.AuthenticationToken.ValidToTicks
getset
byte Photon.Common.Authentication.AuthenticationToken.Version
get