C# Class AppHarbor.Web.Security.AuthenticationCookie

Mostrar archivo Open project: pebblecode/AppHarbor.Web.Security Class Usage Examples

Public Methods

Method Description
AuthenticationCookie ( short cookieType, System.Guid id, bool persistent, ClaimsIdentity identity ) : System
Deserialize ( byte data ) : AuthenticationCookie
GetPrincipal ( ) : IPrincipal
IsExpired ( System.TimeSpan validity ) : bool
Renew ( ) : void
Serialize ( ) : byte[]

Private Methods

Method Description
AuthenticationCookie ( byte data ) : System

Method Details

AuthenticationCookie() public method

public AuthenticationCookie ( short cookieType, System.Guid id, bool persistent, ClaimsIdentity identity ) : System
cookieType short
id System.Guid
persistent bool
identity System.Security.Claims.ClaimsIdentity
return System

Deserialize() public static method

public static Deserialize ( byte data ) : AuthenticationCookie
data byte
return AuthenticationCookie

GetPrincipal() public method

public GetPrincipal ( ) : IPrincipal
return IPrincipal

IsExpired() public method

public IsExpired ( System.TimeSpan validity ) : bool
validity System.TimeSpan
return bool

Renew() public method

public Renew ( ) : void
return void

Serialize() public method

public Serialize ( ) : byte[]
return byte[]