public interface OAuthStore
| Modifier and Type | Interface and Description |
|---|---|
static class |
OAuthStore.ConsumerInfo
Information about an OAuth consumer.
|
static class |
OAuthStore.TokenInfo
Information about an access token.
|
| Modifier and Type | Method and Description |
|---|---|
OAuthStore.ConsumerInfo |
getConsumerKeyAndSecret(SecurityToken securityToken,
String serviceName,
net.oauth.OAuthServiceProvider provider)
Retrieve OAuth consumer to use for requests.
|
OAuthStore.TokenInfo |
getTokenInfo(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName)
Retrieve OAuth access token to use for the request.
|
void |
removeToken(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName)
Remove the access token for the given user/gadget/service/token
|
void |
setTokenInfo(SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName,
OAuthStore.TokenInfo tokenInfo)
Set the access token for the given user/gadget/service/token
|
OAuthStore.ConsumerInfo getConsumerKeyAndSecret(SecurityToken securityToken, String serviceName, net.oauth.OAuthServiceProvider provider) throws GadgetException
securityToken - token for user/gadget making request.serviceName - gadget's nickname for the service being accessed.provider - OAuth service provider info to be inserted into the returned consumer.GadgetException - if no OAuth consumer can be found (e.g. no consumer key can be used.)OAuthStore.TokenInfo getTokenInfo(SecurityToken securityToken, OAuthStore.ConsumerInfo consumerInfo, String serviceName, String tokenName) throws GadgetException
securityToken - token for user/gadget making request.consumerInfo - OAuth consumer that will be used for the request.serviceName - gadget's nickname for the service being accessed.tokenName - gadget's nickname for the token to use.GadgetException - if an error occurs during lookupvoid setTokenInfo(SecurityToken securityToken, OAuthStore.ConsumerInfo consumerInfo, String serviceName, String tokenName, OAuthStore.TokenInfo tokenInfo) throws GadgetException
GadgetExceptionvoid removeToken(SecurityToken securityToken, OAuthStore.ConsumerInfo consumerInfo, String serviceName, String tokenName) throws GadgetException
GadgetExceptionCopyright © 2007-2012. All Rights Reserved.