C# Class Raven.Database.Server.Security.OAuth.AccessToken

Exibir arquivo Open project: nhsevidence/ravendb Class Usage Examples

Public Methods

Method Description
Create ( X509Certificate2 cert, string userId, string databases ) : AccessToken
Serialize ( ) : string
TryParseBody ( X509Certificate2 cert, string token, AccessTokenBody &body ) : bool

Private Methods

Method Description
MatchesSignature ( X509Certificate2 cert ) : bool
Sign ( string body, X509Certificate2 cert ) : string
TryParse ( string token, AccessToken &accessToken ) : bool

Method Details

Create() public static method

public static Create ( X509Certificate2 cert, string userId, string databases ) : AccessToken
cert System.Security.Cryptography.X509Certificates.X509Certificate2
userId string
databases string
return AccessToken

Serialize() public method

public Serialize ( ) : string
return string

TryParseBody() public static method

public static TryParseBody ( X509Certificate2 cert, string token, AccessTokenBody &body ) : bool
cert System.Security.Cryptography.X509Certificates.X509Certificate2
token string
body AccessTokenBody
return bool