public final class NullStatelessTicketCache extends java.lang.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(java.lang.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(java.lang.String serviceTicket)
This is a no-op since we are not storing tickets.
|
public CasAuthenticationToken getByTicketId(java.lang.String serviceTicket)
StatelessTicketCache
CasAuthenticationToken
associated with the specified
ticket.
If not found, returns a null
CasAuthenticationToken
.
getByTicketId
in interface StatelessTicketCache
public void putTicketInCache(CasAuthenticationToken token)
putTicketInCache
in interface StatelessTicketCache
token
- to be added to the cachepublic void removeTicketFromCache(CasAuthenticationToken token)
removeTicketFromCache
in interface StatelessTicketCache
token
- to be removedpublic void removeTicketFromCache(java.lang.String serviceTicket)
removeTicketFromCache
in interface StatelessTicketCache
serviceTicket
- to be removed