@Singleton public class LocalTokenManager extends AbstractTokenManager implements net.sf.ehcache.event.CacheEventListener
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.ehcache.CacheManager |
_cacheManager |
protected TokenManagerConfigurator |
_configuration |
protected net.sf.ehcache.Cache |
_tokenCache |
protected static String |
TOKEN_CACHE_ID |
protected static int |
TOKEN_CACHE_SIZE |
protected static int |
TOKEN_EXPIRATION_TIME |
| Constructor and Description |
|---|
LocalTokenManager() |
LocalTokenManager(TokenManagerConfigurator configuration) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
void |
completeInitialization() |
void |
dispose() |
boolean |
exists(String token) |
protected void |
finalize() |
net.sf.ehcache.Cache |
getCache() |
protected String |
getScopedToken(String scope,
String token) |
void |
notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element) |
void |
notifyRemoveAll(net.sf.ehcache.Ehcache cache) |
boolean |
remove(String token) |
void |
store(String token) |
void |
updateCacheTimeout(int timeout) |
protected static final String TOKEN_CACHE_ID
protected static final int TOKEN_CACHE_SIZE
protected static final int TOKEN_EXPIRATION_TIME
protected TokenManagerConfigurator _configuration
protected net.sf.ehcache.CacheManager _cacheManager
protected net.sf.ehcache.Cache _tokenCache
public LocalTokenManager()
@Inject public LocalTokenManager(TokenManagerConfigurator configuration)
@PostConstruct public void completeInitialization()
public void updateCacheTimeout(int timeout)
public net.sf.ehcache.Cache getCache()
public boolean exists(String token)
exists in interface TokenManagerpublic void store(String token)
store in interface TokenManagerpublic boolean remove(String token)
remove in interface TokenManagerpublic void notifyElementEvicted(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
notifyElementEvicted in interface net.sf.ehcache.event.CacheEventListenerpublic void notifyElementExpired(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
notifyElementExpired in interface net.sf.ehcache.event.CacheEventListenerpublic void notifyElementPut(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementPut in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyElementRemoved(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementRemoved in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyElementUpdated(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.Element element)
throws net.sf.ehcache.CacheException
notifyElementUpdated in interface net.sf.ehcache.event.CacheEventListenernet.sf.ehcache.CacheExceptionpublic void notifyRemoveAll(net.sf.ehcache.Ehcache cache)
notifyRemoveAll in interface net.sf.ehcache.event.CacheEventListenerpublic void dispose()
dispose in interface net.sf.ehcache.event.CacheEventListenerpublic Object clone() throws CloneNotSupportedException
clone in interface net.sf.ehcache.event.CacheEventListenerclone in class ObjectCloneNotSupportedExceptionprotected void finalize()
throws Throwable
Copyright © 2014. All rights reserved.