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 Object
implements StatelessTicketCache, org.springframework.beans.factory.InitializingBean
Deprecated.
since 5.6. In favor of JCache based implementations
Caches tickets using a Spring IoC defined
EHCACHE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.getByTicketId(String serviceTicket) Deprecated.Retrieves theCasAuthenticationTokenassociated with the specified ticket.net.sf.ehcache.EhcachegetCache()Deprecated.voidDeprecated.Adds the specifiedCasAuthenticationTokento the cache.voidremoveTicketFromCache(String serviceTicket) Deprecated.Removes the specified ticket from the cache, meaning that future calls will require a new service ticket.voidDeprecated.Removes the specified ticket from the cache, as perStatelessTicketCache.removeTicketFromCache(String).voidsetCache(net.sf.ehcache.Ehcache cache) Deprecated.
-
Constructor Details
-
EhCacheBasedTicketCache
public EhCacheBasedTicketCache()Deprecated.
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getByTicketId
Deprecated.Description copied from interface:StatelessTicketCacheRetrieves theCasAuthenticationTokenassociated with the specified ticket.If not found, returns a
nullCasAuthenticationToken.- Specified by:
getByTicketIdin interfaceStatelessTicketCache- Returns:
- the fully populated authentication token
-
getCache
public net.sf.ehcache.Ehcache getCache()Deprecated. -
putTicketInCache
Deprecated.Description copied from interface:StatelessTicketCacheAdds the specifiedCasAuthenticationTokento the cache.The
CasAuthenticationToken.getCredentials()method is used to retrieve the service ticket number.- Specified by:
putTicketInCachein interfaceStatelessTicketCache- Parameters:
token- to be added to the cache
-
removeTicketFromCache
Deprecated.Description copied from interface:StatelessTicketCacheRemoves 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:
removeTicketFromCachein interfaceStatelessTicketCache- Parameters:
token- to be removed
-
removeTicketFromCache
Deprecated.Description copied from interface:StatelessTicketCacheRemoves 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:
removeTicketFromCachein interfaceStatelessTicketCache- Parameters:
serviceTicket- to be removed
-
setCache
public void setCache(net.sf.ehcache.Ehcache cache) Deprecated.
-