|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.oauth.GadgetOAuthTokenStore
public class GadgetOAuthTokenStore
Higher-level interface that allows callers to store and retrieve
OAuth-related data directly from GadgetSpecs, GadgetContexts,
etc. See OAuthStore for a more detailed explanation of the OAuth
Data Store.
| Constructor Summary | |
|---|---|
GadgetOAuthTokenStore(OAuthStore store,
GadgetSpecFactory specFactory)
Public constructor. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public GadgetOAuthTokenStore(OAuthStore store,
GadgetSpecFactory specFactory)
store - an OAuthStore that can store and retrieve OAuth
tokens, as well as information about service providers.| Method Detail |
|---|
public AccessorInfo getOAuthAccessor(SecurityToken securityToken,
OAuthArguments arguments,
OAuthClientState clientState,
OAuthResponseParams responseParams,
OAuthFetcherConfig fetcherConfig)
throws OAuthRequestException
OAuthRequestException
public void storeTokenKeyAndSecret(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
OAuthArguments arguments,
OAuthStore.TokenInfo tokenInfo,
OAuthResponseParams responseParams)
throws OAuthRequestException
OAuthRequestException
public void removeToken(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
OAuthArguments arguments,
OAuthResponseParams responseParams)
throws OAuthRequestException
OAuthRequestException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||