public class EhCacheAuthenticationCache extends Object implements AuthenticationCache
AuthenticationCache
that uses an EhCache.Modifier and Type | Field and Description |
---|---|
protected net.sf.ehcache.Cache |
cache |
Constructor and Description |
---|
EhCacheAuthenticationCache() |
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthentication(String ticket)
Returns the cached authentication for the given ticket.
|
void |
putAuthentication(Authentication authentication)
Puts the specified authentication in the cache.
|
void |
removeAuthentication(String ticket)
Removes the authentication associated to the given ticket from the cache.
|
void |
setCache(net.sf.ehcache.Cache cache) |
public void setCache(net.sf.ehcache.Cache cache)
public Authentication getAuthentication(String ticket)
AuthenticationCache
getAuthentication
in interface AuthenticationCache
public void putAuthentication(Authentication authentication)
AuthenticationCache
putAuthentication
in interface AuthenticationCache
public void removeAuthentication(String ticket)
AuthenticationCache
removeAuthentication
in interface AuthenticationCache
Copyright © 2023 CrafterCMS. All rights reserved.