| edu.yale.its.tp.cas.ticket.TicketCache
All known Subclasses: edu.yale.its.tp.cas.ticket.ActiveTicketCache,
TicketCache | public interface TicketCache (Code) | | Represents a generic cache of CAS tickets. Ticket caches have the following characteristics: - At any given time, they store a
list of valid tickets, each indexed with a unique String that acts as a ticket identifier. - Tickets can expire based on
cache-specific rules.
|
Method Summary | |
String | addTicket(Ticket t) Adds a new Ticket to the cache, returning a String identifier that uniquely matches the registered Ticket. | void | deleteTicket(String ticketId) Deletes a ticket given a ticket identifier String. | Ticket | getTicket(String ticketId) Retrieves a Ticket based on a ticket identifier String. |
addTicket | String addTicket(Ticket t) throws TicketException(Code) | | Adds a new Ticket to the cache, returning a String identifier that uniquely matches the registered Ticket. This String
identifier need not be globally unique, but two properties must be guaranteed: - The ticket cache must associate the
identifier with the Ticket for the lifetime of the ticket. - The ticket cache must ensure that once a ticket expires, its
identifier does not return a valid ticket.
|
deleteTicket | void deleteTicket(String ticketId)(Code) | | Deletes a ticket given a ticket identifier String. (Implementations need not provide a meaningful implementation of this
method; they must throw UnsupportedOperationException if they do not.)
|
getTicket | Ticket getTicket(String ticketId)(Code) | | Retrieves a Ticket based on a ticket identifier String. If the identifier matches no current ticket, returns null.
|
|
|