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

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

public abstract class OTUTicketCache
extends ActiveTicketCache

Represents a cache of tickets, each of which may be retrieved only once. That is, retrieval entails deletion. Expiration also occurs for inactivity.


Constructor Summary
OTUTicketCache(int tolerance)
          Constucts a new OTUTicketCache that will, additionally, expire tickets after tolerance seconds of inactivity.
 
Method Summary
 edu.yale.its.tp.cas.ticket.Ticket getTicket(java.lang.String ticketId)
          Retrieves a Ticket based on a ticket identifier String.
 
Methods inherited from class edu.yale.its.tp.cas.ticket.ActiveTicketCache
addTicket, newTicketId, retrieveTicket, storeTicket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.yale.its.tp.cas.ticket.TicketCache
deleteTicket
 

Constructor Detail

OTUTicketCache

public OTUTicketCache(int tolerance)
Constucts a new OTUTicketCache that will, additionally, expire tickets after tolerance seconds of inactivity.

Method Detail

getTicket

public edu.yale.its.tp.cas.ticket.Ticket getTicket(java.lang.String ticketId)
Description copied from interface: TicketCache
Retrieves a Ticket based on a ticket identifier String. If the identifier matches no current ticket, returns null.

Specified by:
getTicket in interface TicketCache
Overrides:
getTicket in class ActiveTicketCache