nl.surfnet.coin.api.oauth
Class OpenConextOauth1TokenServices

java.lang.Object
  extended by org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices
      extended by nl.surfnet.coin.api.oauth.OpenConextOauth1TokenServices
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.oauth.provider.token.OAuthProviderTokenServices, org.springframework.security.oauth.provider.token.OAuthTokenLifecycleRegistry

@Component(value="oauth1TokenServices")
public class OpenConextOauth1TokenServices
extends org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices
implements org.springframework.beans.factory.InitializingBean

Token store for Oauth1 tokens.


Nested Class Summary
static class OpenConextOauth1TokenServices.OAuthProviderTokenRowMapper
           
 
Constructor Summary
OpenConextOauth1TokenServices()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.springframework.security.oauth.provider.token.OAuthProviderTokenImpl readToken(String authentication)
           
protected  org.springframework.security.oauth.provider.token.OAuthProviderTokenImpl removeToken(String tokenValue)
           
 void setDataSource(DataSource dataSource)
           
protected  void storeToken(String value, org.springframework.security.oauth.provider.token.OAuthProviderTokenImpl token)
           
 
Methods inherited from class org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices
authorizeRequestToken, createAccessToken, createUnauthorizedRequestToken, getAccessTokenValiditySeconds, getLifecycleListeners, getRandom, getRequestTokenValiditySeconds, getToken, getTokenSecretLengthBytes, isExpired, onTokenCreated, onTokenRemoved, register, setAccessTokenValiditySeconds, setRandom, setRequestTokenValiditySeconds, setTokenSecretLengthBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenConextOauth1TokenServices

public OpenConextOauth1TokenServices()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices
Throws:
Exception

readToken

protected org.springframework.security.oauth.provider.token.OAuthProviderTokenImpl readToken(String authentication)
Specified by:
readToken in class org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices

storeToken

protected void storeToken(String value,
                          org.springframework.security.oauth.provider.token.OAuthProviderTokenImpl token)
Specified by:
storeToken in class org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices

removeToken

protected org.springframework.security.oauth.provider.token.OAuthProviderTokenImpl removeToken(String tokenValue)
Specified by:
removeToken in class org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices

setDataSource

public void setDataSource(DataSource dataSource)


Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.