Class EhCacheBasedTicketCache
- java.lang.Object
-
- org.springframework.security.cas.authentication.EhCacheBasedTicketCache
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,StatelessTicketCache
@Deprecated public class EhCacheBasedTicketCache extends java.lang.Object implements StatelessTicketCache, org.springframework.beans.factory.InitializingBean
Deprecated.since 5.6. In favor of JCache based implementationsCaches tickets using a Spring IoC defined EHCACHE.
-
-
Constructor Summary
Constructors Constructor Description EhCacheBasedTicketCache()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
afterPropertiesSet()
Deprecated.CasAuthenticationToken
getByTicketId(java.lang.String serviceTicket)
Deprecated.Retrieves theCasAuthenticationToken
associated with the specified ticket.net.sf.ehcache.Ehcache
getCache()
Deprecated.void
putTicketInCache(CasAuthenticationToken token)
Deprecated.Adds the specifiedCasAuthenticationToken
to the cache.void
removeTicketFromCache(java.lang.String serviceTicket)
Deprecated.Removes the specified ticket from the cache, meaning that future calls will require a new service ticket.void
removeTicketFromCache(CasAuthenticationToken token)
Deprecated.Removes the specified ticket from the cache, as perStatelessTicketCache.removeTicketFromCache(String)
.void
setCache(net.sf.ehcache.Ehcache cache)
Deprecated.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
Deprecated.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
getByTicketId
public CasAuthenticationToken getByTicketId(java.lang.String serviceTicket)
Deprecated.Description copied from interface:StatelessTicketCache
Retrieves theCasAuthenticationToken
associated with the specified ticket.If not found, returns a
null
CasAuthenticationToken
.- Specified by:
getByTicketId
in interfaceStatelessTicketCache
- Returns:
- the fully populated authentication token
-
getCache
public net.sf.ehcache.Ehcache getCache()
Deprecated.
-
putTicketInCache
public void putTicketInCache(CasAuthenticationToken token)
Deprecated.Description copied from interface:StatelessTicketCache
Adds the specifiedCasAuthenticationToken
to the cache.The
CasAuthenticationToken.getCredentials()
method is used to retrieve the service ticket number.- Specified by:
putTicketInCache
in interfaceStatelessTicketCache
- Parameters:
token
- to be added to the cache
-
removeTicketFromCache
public void removeTicketFromCache(CasAuthenticationToken token)
Deprecated.Description copied from interface:StatelessTicketCache
Removes the specified ticket from the cache, as perStatelessTicketCache.removeTicketFromCache(String)
.Implementations should use
CasAuthenticationToken.getCredentials()
to obtain the ticket and then delegate to theStatelessTicketCache.removeTicketFromCache(String)
method.- Specified by:
removeTicketFromCache
in interfaceStatelessTicketCache
- Parameters:
token
- to be removed
-
removeTicketFromCache
public void removeTicketFromCache(java.lang.String serviceTicket)
Deprecated.Description copied from interface:StatelessTicketCache
Removes the specified ticket from the cache, meaning that future calls will require a new service ticket.This is in case applications wish to provide a session termination capability for their stateless clients.
- Specified by:
removeTicketFromCache
in interfaceStatelessTicketCache
- Parameters:
serviceTicket
- to be removed
-
setCache
public void setCache(net.sf.ehcache.Ehcache cache)
Deprecated.
-
-