public final class NullStatelessTicketCache extends Object implements StatelessTicketCache
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.
CasAuthenticationProvider| Constructor and Description |
|---|
NullStatelessTicketCache() |
| Modifier and Type | Method and Description |
|---|---|
CasAuthenticationToken |
getByTicketId(String serviceTicket)
Retrieves the
CasAuthenticationToken associated with the specified
ticket. |
void |
putTicketInCache(CasAuthenticationToken token)
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.
|
void |
removeTicketFromCache(String serviceTicket)
This is a no-op since we are not storing tickets.
|
public CasAuthenticationToken getByTicketId(String serviceTicket)
StatelessTicketCacheCasAuthenticationToken associated with the specified
ticket.
If not found, returns a nullCasAuthenticationToken.
getByTicketId in interface StatelessTicketCachepublic void putTicketInCache(CasAuthenticationToken token)
putTicketInCache in interface StatelessTicketCachetoken - to be added to the cachepublic void removeTicketFromCache(CasAuthenticationToken token)
removeTicketFromCache in interface StatelessTicketCachetoken - to be removedpublic void removeTicketFromCache(String serviceTicket)
removeTicketFromCache in interface StatelessTicketCacheserviceTicket - to be removed