public string GetSignedTokenString() { if (Value == null) { return(null); } return(SessionInfoSigner.CreateSignedToken(Value, secret_)); }
public string Protect(AuthenticationTicket data) { SessionInfo sessionInfo = data.Principal.IntoSessionInfo(); return(SessionInfoSigner.CreateSignedToken(sessionInfo, secret_)); }