Class NullStatelessTicketCache
- java.lang.Object
-
- org.springframework.security.cas.authentication.NullStatelessTicketCache
-
- All Implemented Interfaces:
StatelessTicketCache
public final class NullStatelessTicketCache extends java.lang.Object implements StatelessTicketCache
Implementation of @linkStatelessTicketCachethat has no backing cache. Useful in instances where storing of tickets for stateless session management is not required.This is the default StatelessTicketCache of the @link
CasAuthenticationProviderto eliminate the unnecessary dependency on EhCache that applications have even if they are not using the stateless session management.- See Also:
CasAuthenticationProvider
-
-
Constructor Summary
Constructors Constructor Description NullStatelessTicketCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CasAuthenticationTokengetByTicketId(java.lang.String serviceTicket)Retrieves theCasAuthenticationTokenassociated with the specified ticket.voidputTicketInCache(CasAuthenticationToken token)This is a no-op since we are not storing tickets.voidremoveTicketFromCache(java.lang.String serviceTicket)This is a no-op since we are not storing tickets.voidremoveTicketFromCache(CasAuthenticationToken token)This is a no-op since we are not storing tickets.
-
-
-
Method Detail
-
getByTicketId
public 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 interfaceStatelessTicketCache- Returns:
- null since we are not storing any tickets.
-
putTicketInCache
public void putTicketInCache(CasAuthenticationToken token)
This is a no-op since we are not storing tickets.- Specified by:
putTicketInCachein interfaceStatelessTicketCache- Parameters:
token- to be added to the cache
-
removeTicketFromCache
public void removeTicketFromCache(CasAuthenticationToken token)
This is a no-op since we are not storing tickets.- Specified by:
removeTicketFromCachein interfaceStatelessTicketCache- Parameters:
token- to be removed
-
removeTicketFromCache
public void removeTicketFromCache(java.lang.String serviceTicket)
This is a no-op since we are not storing tickets.- Specified by:
removeTicketFromCachein interfaceStatelessTicketCache- Parameters:
serviceTicket- to be removed
-
-