public static Deserialize ( byte data ) : |
||
data | byte | |
return |
public static AuthenticationCookie Deserialize(byte[] data)
{
return new AuthenticationCookie(data);
}
public byte[] GetTagData() { var cookie = _context.Request.Cookies[_configuration.CookieName]; if (cookie != null) { using (var protector = new CookieProtector(_configuration)) { byte[] data; protector.Validate(cookie.Value, out data); var authenticationCookie = AuthenticationCookie.Deserialize(data); return(authenticationCookie.Tag); } } return(null); }