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 @linkStatelessTicketCache
that 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
CasAuthenticationProvider
to 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 CasAuthenticationToken
getByTicketId(java.lang.String serviceTicket)
Retrieves theCasAuthenticationToken
associated with the specified ticket.void
putTicketInCache(CasAuthenticationToken token)
This is a no-op since we are not storing tickets.void
removeTicketFromCache(java.lang.String serviceTicket)
This is a no-op since we are not storing tickets.void
removeTicketFromCache(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:StatelessTicketCache
Retrieves theCasAuthenticationToken
associated with the specified ticket.If not found, returns a
null
CasAuthenticationToken
.- Specified by:
getByTicketId
in 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:
putTicketInCache
in 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:
removeTicketFromCache
in 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:
removeTicketFromCache
in interfaceStatelessTicketCache
- Parameters:
serviceTicket
- to be removed
-
-