Class NullStatelessTicketCache
java.lang.Object
org.springframework.security.cas.authentication.NullStatelessTicketCache
- All Implemented Interfaces:
StatelessTicketCache
Implementation of @link
StatelessTicketCache
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetByTicketId
(String serviceTicket) Retrieves theCasAuthenticationToken
associated with the specified ticket.void
This is a no-op since we are not storing tickets.void
removeTicketFromCache
(String serviceTicket) This is a no-op since we are not storing tickets.void
This is a no-op since we are not storing tickets.
-
Constructor Details
-
NullStatelessTicketCache
public NullStatelessTicketCache()
-
-
Method Details
-
getByTicketId
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
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
This is a no-op since we are not storing tickets.- Specified by:
removeTicketFromCache
in interfaceStatelessTicketCache
- Parameters:
token
- to be removed
-
removeTicketFromCache
This is a no-op since we are not storing tickets.- Specified by:
removeTicketFromCache
in interfaceStatelessTicketCache
- Parameters:
serviceTicket
- to be removed
-