public class GadgetOAuthTokenStore extends Object
GadgetSpecs, GadgetContexts,
etc. See OAuthStore for a more detailed explanation of the OAuth
Data Store.| Constructor and Description |
|---|
GadgetOAuthTokenStore(OAuthStore store,
GadgetSpecFactory specFactory)
Public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AccessorInfo |
getOAuthAccessor(SecurityToken securityToken,
OAuthArguments arguments,
OAuthClientState clientState,
OAuthResponseParams responseParams,
OAuthFetcherConfig fetcherConfig)
Retrieve an AccessorInfo and OAuthAccessor that are ready for signing OAuthMessages.
|
void |
removeToken(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
OAuthArguments arguments,
OAuthResponseParams responseParams)
Remove an access token for the given user/gadget/service/token name
|
void |
storeTokenKeyAndSecret(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
OAuthArguments arguments,
OAuthStore.TokenInfo tokenInfo,
OAuthResponseParams responseParams)
Store an access token for the given user/gadget/service/token name
|
@Inject public GadgetOAuthTokenStore(OAuthStore store, GadgetSpecFactory specFactory)
store - an OAuthStore that can store and retrieve OAuth
tokens, as well as information about service providers.public AccessorInfo getOAuthAccessor(SecurityToken securityToken, OAuthArguments arguments, OAuthClientState clientState, OAuthResponseParams responseParams, OAuthFetcherConfig fetcherConfig) throws OAuthRequestException
OAuthRequestExceptionpublic void storeTokenKeyAndSecret(SecurityToken securityToken, OAuthStore.ConsumerInfo consumerInfo, OAuthArguments arguments, OAuthStore.TokenInfo tokenInfo, OAuthResponseParams responseParams) throws OAuthRequestException
OAuthRequestExceptionpublic void removeToken(SecurityToken securityToken, OAuthStore.ConsumerInfo consumerInfo, OAuthArguments arguments, OAuthResponseParams responseParams) throws OAuthRequestException
OAuthRequestExceptionCopyright © 2007-2012. All Rights Reserved.