C# Class ExtApi.Engine.InMemoryTokenManager

Inheritance: IConsumerTokenManager
Show file Open project: KallDrexx/ExtApi Class Usage Examples

Public Methods

Method Description
AddKeyAndSecret ( string token, string secret ) : void
ExpireRequestTokenAndStoreNewAccessToken ( string consumerKey, string requestToken, string accessToken, string accessTokenSecret ) : void
GetConsumerSecret ( string consumerKey ) : string
GetTokenSecret ( string token ) : string
GetTokenType ( string token ) : TokenType

Classifies a token as a request token or an access token.

StoreNewRequestToken ( DotNetOpenAuth.OAuth.Messages.UnauthorizedTokenRequest request, ITokenSecretContainingMessage response ) : void

Method Details

AddKeyAndSecret() public method

public AddKeyAndSecret ( string token, string secret ) : void
token string
secret string
return void

ExpireRequestTokenAndStoreNewAccessToken() public method

public ExpireRequestTokenAndStoreNewAccessToken ( string consumerKey, string requestToken, string accessToken, string accessTokenSecret ) : void
consumerKey string
requestToken string
accessToken string
accessTokenSecret string
return void

GetConsumerSecret() public method

public GetConsumerSecret ( string consumerKey ) : string
consumerKey string
return string

GetTokenSecret() public method

public GetTokenSecret ( string token ) : string
token string
return string

GetTokenType() public method

Classifies a token as a request token or an access token.
public GetTokenType ( string token ) : TokenType
token string The token to classify.
return TokenType

StoreNewRequestToken() public method

public StoreNewRequestToken ( DotNetOpenAuth.OAuth.Messages.UnauthorizedTokenRequest request, ITokenSecretContainingMessage response ) : void
request DotNetOpenAuth.OAuth.Messages.UnauthorizedTokenRequest
response ITokenSecretContainingMessage
return void