nl.surfnet.coin.shindig.oauth
Class CoinOAuthStore
java.lang.Object
nl.surfnet.coin.shindig.oauth.CoinOAuthStore
- All Implemented Interfaces:
- OAuthStore
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)
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoinOAuthStore
public CoinOAuthStore(String defaultCallbackUrl,
String baseUrl,
TokenInfoService tokenInfoService,
String pathToPrivateKey,
String privateKeyName,
nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer)
throws IOException
- Throws:
IOException
getConsumerKeyAndSecret
public OAuthStore.ConsumerInfo getConsumerKeyAndSecret(org.apache.shindig.auth.SecurityToken securityToken,
String serviceName,
net.oauth.OAuthServiceProvider provider)
throws GadgetException
- Specified by:
getConsumerKeyAndSecret in interface OAuthStore
- Throws:
GadgetException
getTokenInfo
public OAuthStore.TokenInfo getTokenInfo(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName)
- Specified by:
getTokenInfo in interface OAuthStore
setTokenInfo
public void setTokenInfo(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName,
OAuthStore.TokenInfo tokenInfo)
- Specified by:
setTokenInfo in interface OAuthStore
removeToken
public void removeToken(org.apache.shindig.auth.SecurityToken securityToken,
OAuthStore.ConsumerInfo consumerInfo,
String serviceName,
String tokenName)
throws GadgetException
- Specified by:
removeToken in interface OAuthStore
- Throws:
GadgetException
Copyright © 2007-2012. All Rights Reserved.