org.springframework.security.oauth.provider.token
Class InMemorySelfCleaningProviderTokenServices
java.lang.Object
org.springframework.security.oauth.provider.token.RandomValueProviderTokenServices
org.springframework.security.oauth.provider.token.InMemoryProviderTokenServices
org.springframework.security.oauth.provider.token.InMemorySelfCleaningProviderTokenServices
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, OAuthProviderTokenServices, OAuthTokenLifecycleRegistry
public class InMemorySelfCleaningProviderTokenServices
- extends InMemoryProviderTokenServices
- implements org.springframework.beans.factory.DisposableBean
Implementation of TokenServices that stores tokens in memory. The token services will schedule a thread to do cleaning up of expired tokens.
- Author:
- Ryan Heaton
| 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 |
InMemorySelfCleaningProviderTokenServices
public InMemorySelfCleaningProviderTokenServices()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Description copied from class:
RandomValueProviderTokenServices
- Initialze these token services. If no random generator is set, one will be created.
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSet in class RandomValueProviderTokenServices
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
getCleanupIntervalSeconds
public Integer getCleanupIntervalSeconds()
- The interval at which to schedule cleanup. (<= 0 for never).
- Returns:
- The interval at which to schedule cleanup.
setCleanupIntervalSeconds
public void setCleanupIntervalSeconds(Integer cleanupIntervalSeconds)
- The interval at which to schedule cleanup.
- Parameters:
cleanupIntervalSeconds - The interval at which to schedule cleanup.
Copyright © 2013. All rights reserved.