C# Class Rainy.OAuth.RainyTokenStore

Simple token store. Holds our RequestTokens and AccessTokens.
Inheritance: ITokenStore
Afficher le fichier Open project: Dynalon/Rainy Class Usage Examples

Méthodes publiques

Méthode Description
ConsumeAccessToken ( IOAuthContext accessContext ) : void
ConsumeRequestToken ( IOAuthContext requestContext ) : void
CreateAccessToken ( IOAuthContext context ) : IToken

Create an access token using xAuth.

CreateRequestToken ( IOAuthContext context ) : IToken
GetAccessTokenAssociatedWithRequestToken ( IOAuthContext requestContext ) : IToken
GetAccessTokenSecret ( IOAuthContext context ) : string
GetCallbackUrlForToken ( IOAuthContext requestContext ) : string
GetRequestTokenSecret ( IOAuthContext context ) : string
GetStatusOfRequestForAccess ( IOAuthContext accessContext ) : RequestForAccessStatus
GetToken ( IOAuthContext context ) : IToken
GetVerificationCodeForRequestToken ( IOAuthContext requestContext ) : string
RainyTokenStore ( ITokenRepository accessTokenRepository, ITokenRepository requestTokenRepository ) : System
RenewAccessToken ( IOAuthContext requestContext ) : IToken

Private Methods

Méthode Description
GetAccessToken ( IOAuthContext context ) : DevDefined.OAuth.Storage.Basic.AccessToken
GetRequestToken ( IOAuthContext context ) : DevDefined.OAuth.Storage.Basic.RequestToken
UseUpRequestToken ( IOAuthContext requestContext, DevDefined.OAuth.Storage.Basic.RequestToken requestToken ) : void

Method Details

ConsumeAccessToken() public méthode

public ConsumeAccessToken ( IOAuthContext accessContext ) : void
accessContext IOAuthContext
Résultat void

ConsumeRequestToken() public méthode

public ConsumeRequestToken ( IOAuthContext requestContext ) : void
requestContext IOAuthContext
Résultat void

CreateAccessToken() public méthode

Create an access token using xAuth.
public CreateAccessToken ( IOAuthContext context ) : IToken
context IOAuthContext The context.
Résultat IToken

CreateRequestToken() public méthode

public CreateRequestToken ( IOAuthContext context ) : IToken
context IOAuthContext
Résultat IToken

GetAccessTokenAssociatedWithRequestToken() public méthode

public GetAccessTokenAssociatedWithRequestToken ( IOAuthContext requestContext ) : IToken
requestContext IOAuthContext
Résultat IToken

GetAccessTokenSecret() public méthode

public GetAccessTokenSecret ( IOAuthContext context ) : string
context IOAuthContext
Résultat string

GetCallbackUrlForToken() public méthode

public GetCallbackUrlForToken ( IOAuthContext requestContext ) : string
requestContext IOAuthContext
Résultat string

GetRequestTokenSecret() public méthode

public GetRequestTokenSecret ( IOAuthContext context ) : string
context IOAuthContext
Résultat string

GetStatusOfRequestForAccess() public méthode

public GetStatusOfRequestForAccess ( IOAuthContext accessContext ) : RequestForAccessStatus
accessContext IOAuthContext
Résultat RequestForAccessStatus

GetToken() public méthode

public GetToken ( IOAuthContext context ) : IToken
context IOAuthContext
Résultat IToken

GetVerificationCodeForRequestToken() public méthode

public GetVerificationCodeForRequestToken ( IOAuthContext requestContext ) : string
requestContext IOAuthContext
Résultat string

RainyTokenStore() public méthode

public RainyTokenStore ( ITokenRepository accessTokenRepository, ITokenRepository requestTokenRepository ) : System
accessTokenRepository ITokenRepository
requestTokenRepository ITokenRepository
Résultat System

RenewAccessToken() public méthode

public RenewAccessToken ( IOAuthContext requestContext ) : IToken
requestContext IOAuthContext
Résultat IToken