nl.surfnet.coin.shindig.oauth
Class CoinOAuthDataStore

java.lang.Object
  extended by nl.surfnet.coin.shindig.spi.AbstractRestDelegationService
      extended by 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)


Field Summary
 
Fields inherited from class nl.surfnet.coin.shindig.spi.AbstractRestDelegationService
UTF_8
 
Constructor Summary
CoinOAuthDataStore()
           
 
Method Summary
 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)
           
 
Methods inherited from class nl.surfnet.coin.shindig.spi.AbstractRestDelegationService
executeHttpGet, getEnvironment, getObjectMapper, getServiceProviderContext, getVirtualOrganizationContext, logApiCall, setEnvironment, setHttpClientProvider, setLogService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoinOAuthDataStore

public CoinOAuthDataStore()
Method Detail

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.