Class SpringCacheBasedTicketCache
- java.lang.Object
- 
- org.springframework.security.cas.authentication.SpringCacheBasedTicketCache
 
- 
- All Implemented Interfaces:
- StatelessTicketCache
 
 public class SpringCacheBasedTicketCache extends java.lang.Object implements StatelessTicketCache Caches tickets using a Spring IoC definedCache.- Since:
- 3.2
 
- 
- 
Constructor SummaryConstructors Constructor Description SpringCacheBasedTicketCache(org.springframework.cache.Cache cache)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CasAuthenticationTokengetByTicketId(java.lang.String serviceTicket)Retrieves theCasAuthenticationTokenassociated with the specified ticket.voidputTicketInCache(CasAuthenticationToken token)Adds the specifiedCasAuthenticationTokento the cache.voidremoveTicketFromCache(java.lang.String serviceTicket)Removes the specified ticket from the cache, meaning that future calls will require a new service ticket.voidremoveTicketFromCache(CasAuthenticationToken token)Removes the specified ticket from the cache, as perStatelessTicketCache.removeTicketFromCache(String).
 
- 
- 
- 
Method Detail- 
getByTicketIdpublic CasAuthenticationToken getByTicketId(java.lang.String serviceTicket) Description copied from interface:StatelessTicketCacheRetrieves theCasAuthenticationTokenassociated with the specified ticket.If not found, returns a nullCasAuthenticationToken.- Specified by:
- getByTicketIdin interface- StatelessTicketCache
- Returns:
- the fully populated authentication token
 
 - 
putTicketInCachepublic void putTicketInCache(CasAuthenticationToken token) Description copied from interface:StatelessTicketCacheAdds the specifiedCasAuthenticationTokento the cache.The CasAuthenticationToken.getCredentials()method is used to retrieve the service ticket number.- Specified by:
- putTicketInCachein interface- StatelessTicketCache
- Parameters:
- token- to be added to the cache
 
 - 
removeTicketFromCachepublic void removeTicketFromCache(CasAuthenticationToken token) 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 interface- StatelessTicketCache
- Parameters:
- token- to be removed
 
 - 
removeTicketFromCachepublic void removeTicketFromCache(java.lang.String serviceTicket) 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 interface- StatelessTicketCache
- Parameters:
- serviceTicket- to be removed
 
 
- 
 
-