@Component(value="oAuthDataStore") public class CoinOAuthDataStore extends AbstractRestDelegationService implements OAuthDataStore
OAuthDataStore that retrieves the values from EngineBlock
Usage scenario: coin container is the oauth provider (oauth data are stored
here, e.g. iGoogle requests data from Coin)UTF_8| Constructor and Description |
|---|
CoinOAuthDataStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
authorizeToken(OAuthEntry entry,
String userId) |
OAuthEntry |
convertToAccessToken(OAuthEntry entry) |
void |
disableToken(OAuthEntry entry) |
OAuthEntry |
generateRequestToken(String consumerKey,
String oauthVersion,
String signedCallbackUrl,
String virtualOrganization) |
net.oauth.OAuthConsumer |
getConsumer(String consumerKey) |
OAuthEntry |
getEntry(String oauthToken) |
org.apache.shindig.auth.SecurityToken |
getSecurityTokenForConsumerRequest(String consumerKey,
String userId,
net.oauth.OAuthConsumer authConsumer) |
void |
removeToken(OAuthEntry entry) |
void |
setErrorMessageMailer(nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer) |
executeHttpGet, getEnvironment, getObjectMapper, getServiceProviderContext, getVirtualOrganizationContext, logApiCall, setEnvironment, setHttpClientProvider, setLogServicepublic OAuthEntry getEntry(String oauthToken)
getEntry in interface OAuthDataStorepublic org.apache.shindig.auth.SecurityToken getSecurityTokenForConsumerRequest(String consumerKey, String userId, net.oauth.OAuthConsumer authConsumer) throws net.oauth.OAuthProblemException
getSecurityTokenForConsumerRequest in interface OAuthDataStorenet.oauth.OAuthProblemExceptionpublic net.oauth.OAuthConsumer getConsumer(String consumerKey) throws net.oauth.OAuthProblemException
getConsumer in interface OAuthDataStorenet.oauth.OAuthProblemExceptionpublic OAuthEntry generateRequestToken(String consumerKey, String oauthVersion, String signedCallbackUrl, String virtualOrganization) throws net.oauth.OAuthProblemException
generateRequestToken in interface OAuthDataStorenet.oauth.OAuthProblemExceptionpublic OAuthEntry convertToAccessToken(OAuthEntry entry) throws net.oauth.OAuthProblemException
convertToAccessToken in interface OAuthDataStorenet.oauth.OAuthProblemExceptionpublic void authorizeToken(OAuthEntry entry, String userId) throws net.oauth.OAuthProblemException
authorizeToken in interface OAuthDataStorenet.oauth.OAuthProblemExceptionpublic void disableToken(OAuthEntry entry)
disableToken in interface OAuthDataStorepublic void removeToken(OAuthEntry entry)
removeToken in interface OAuthDataStorepublic void setErrorMessageMailer(nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer)
Copyright © 2007-2012. All Rights Reserved.