edu.yale.its.tp.cas.ticket
Class ServiceTicketCache

java.lang.Object
  |
  +--edu.yale.its.tp.cas.ticket.ActiveTicketCache
        |
        +--edu.yale.its.tp.cas.ticket.OTUTicketCache
              |
              +--edu.yale.its.tp.cas.ticket.ServiceTicketCache
All Implemented Interfaces:
TicketCache

public class ServiceTicketCache
extends OTUTicketCache

Represents a generic cache of service tickets. Can be used as a store for STs or PTs.


Constructor Summary
ServiceTicketCache(java.lang.Class ticketType, int tolerance)
          Constructs a new ServiceTicketCache that is intended to store cookies of the given specific ticket type.
 
Method Summary
 void deleteTicket(java.lang.String ticketId)
          Removes the ticket from the cache.
protected  java.lang.String newTicketId()
          Generates and returns a new, unique ticket ID
protected  edu.yale.its.tp.cas.ticket.Ticket retrieveTicket(java.lang.String ticketId)
          Retrieves the ticket with the given identifier.
protected  void storeTicket(java.lang.String ticketId, edu.yale.its.tp.cas.ticket.Ticket t)
          Stores the given ticket, associating it with the given identifier.
 
Methods inherited from class edu.yale.its.tp.cas.ticket.OTUTicketCache
getTicket
 
Methods inherited from class edu.yale.its.tp.cas.ticket.ActiveTicketCache
addTicket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceTicketCache

public ServiceTicketCache(java.lang.Class ticketType,
                          int tolerance)
Constructs a new ServiceTicketCache that is intended to store cookies of the given specific ticket type.

Method Detail

newTicketId

protected java.lang.String newTicketId()
Generates and returns a new, unique ticket ID

Specified by:
newTicketId in class ActiveTicketCache

storeTicket

protected void storeTicket(java.lang.String ticketId,
                           edu.yale.its.tp.cas.ticket.Ticket t)
                    throws TicketException
Stores the given ticket, associating it with the given identifier.

Specified by:
storeTicket in class ActiveTicketCache
TicketException

retrieveTicket

protected edu.yale.its.tp.cas.ticket.Ticket retrieveTicket(java.lang.String ticketId)
Retrieves the ticket with the given identifier.

Specified by:
retrieveTicket in class ActiveTicketCache

deleteTicket

public void deleteTicket(java.lang.String ticketId)
Removes the ticket from the cache.