public final class

NullStatelessTicketCache

extends Object
implements StatelessTicketCache
java.lang.Object
   ↳ org.springframework.security.cas.authentication.NullStatelessTicketCache

Class Overview

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.

Summary

Public Constructors
NullStatelessTicketCache()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.cas.authentication.StatelessTicketCache

Public Constructors

public NullStatelessTicketCache ()

Public Methods

public CasAuthenticationToken getByTicketId (String serviceTicket)

Retrieves the CasAuthenticationToken associated with the specified ticket.

If not found, returns a nullCasAuthenticationToken.

Returns
  • null since we are not storing any tickets.

public void putTicketInCache (CasAuthenticationToken token)

This is a no-op since we are not storing tickets.

Parameters
token to be added to the cache

public void removeTicketFromCache (CasAuthenticationToken token)

This is a no-op since we are not storing tickets.

Parameters
token to be removed

public void removeTicketFromCache (String serviceTicket)

This is a no-op since we are not storing tickets.

Parameters
serviceTicket to be removed