nl.surfnet.coin.shindig.oauth
Class CoinOAuthDataStore
java.lang.Object
nl.surfnet.coin.shindig.spi.AbstractRestDelegationService
nl.surfnet.coin.shindig.oauth.CoinOAuthDataStore
- All Implemented Interfaces:
- OAuthDataStore
@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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoinOAuthDataStore
public CoinOAuthDataStore()
getEntry
public OAuthEntry getEntry(String oauthToken)
- Specified by:
getEntry in interface OAuthDataStore
getSecurityTokenForConsumerRequest
public org.apache.shindig.auth.SecurityToken getSecurityTokenForConsumerRequest(String consumerKey,
String userId,
net.oauth.OAuthConsumer authConsumer)
throws net.oauth.OAuthProblemException
- Specified by:
getSecurityTokenForConsumerRequest in interface OAuthDataStore
- Throws:
net.oauth.OAuthProblemException
getConsumer
public net.oauth.OAuthConsumer getConsumer(String consumerKey)
throws net.oauth.OAuthProblemException
- Specified by:
getConsumer in interface OAuthDataStore
- Throws:
net.oauth.OAuthProblemException
generateRequestToken
public OAuthEntry generateRequestToken(String consumerKey,
String oauthVersion,
String signedCallbackUrl,
String virtualOrganization)
throws net.oauth.OAuthProblemException
- Specified by:
generateRequestToken in interface OAuthDataStore
- Throws:
net.oauth.OAuthProblemException
convertToAccessToken
public OAuthEntry convertToAccessToken(OAuthEntry entry)
throws net.oauth.OAuthProblemException
- Specified by:
convertToAccessToken in interface OAuthDataStore
- Throws:
net.oauth.OAuthProblemException
authorizeToken
public void authorizeToken(OAuthEntry entry,
String userId)
throws net.oauth.OAuthProblemException
- Specified by:
authorizeToken in interface OAuthDataStore
- Throws:
net.oauth.OAuthProblemException
disableToken
public void disableToken(OAuthEntry entry)
- Specified by:
disableToken in interface OAuthDataStore
removeToken
public void removeToken(OAuthEntry entry)
- Specified by:
removeToken in interface OAuthDataStore
setErrorMessageMailer
public void setErrorMessageMailer(nl.surfnet.coin.shared.service.ErrorMessageMailer errorMessageMailer)
Copyright © 2007-2012. All Rights Reserved.