public class CoinOAuthStore extends Object implements OAuthStore
OAuthStore that retrieves the consumer_key, consumer_secret and
key_type from the Engine Block
Usage scenario: coin container is the oauth consumer (oauth data are stored elsewhere,
this container tries to fetch data from e.g. Google)OAuthStore.ConsumerInfo, OAuthStore.TokenInfo| Constructor and Description |
|---|
CoinOAuthStore(String defaultCallbackUrl,
String baseUrl,
TokenInfoService tokenInfoService,
String pathToPrivateKey,
String privateKeyName,
nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer) |
| Modifier and Type | Method and Description |
|---|---|
OAuthStore.ConsumerInfo |
getConsumerKeyAndSecret(org.apache.shindig.auth.SecurityToken securityToken,
String serviceName,
net.oauth.OAuthServiceProvider provider) |
OAuthStore.TokenInfo |
getTokenInfo(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName) |
void |
removeToken(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName) |
void |
setTokenInfo(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName,
OAuthStore.TokenInfo tokenInfo) |
public CoinOAuthStore(String defaultCallbackUrl, String baseUrl, TokenInfoService tokenInfoService, String pathToPrivateKey, String privateKeyName, nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer) throws IOException
IOExceptionpublic OAuthStore.ConsumerInfo getConsumerKeyAndSecret(org.apache.shindig.auth.SecurityToken securityToken, String serviceName, net.oauth.OAuthServiceProvider provider) throws GadgetException
getConsumerKeyAndSecret in interface OAuthStoreGadgetExceptionpublic OAuthStore.TokenInfo getTokenInfo(org.apache.shindig.auth.SecurityToken securityToken, OAuthStore.ConsumerInfo consumerInfo, String serviceName, String tokenName)
getTokenInfo in interface OAuthStorepublic void setTokenInfo(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName,
OAuthStore.TokenInfo tokenInfo)
setTokenInfo in interface OAuthStorepublic void removeToken(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName)
throws GadgetException
removeToken in interface OAuthStoreGadgetExceptionCopyright © 2007-2012. All Rights Reserved.