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

java.lang.Object
  |
  +--edu.yale.its.tp.cas.ticket.Ticket
        |
        +--edu.yale.its.tp.cas.ticket.TicketGrantingTicket
Direct Known Subclasses:
ProxyGrantingTicket

public class TicketGrantingTicket
extends Ticket

Represents a CAS ticket-granting ticket, typically vended as a cookie (TGC). This class represents, in the general sense, a ticket that is used to grant other ticket; it becomes a "powerful" TGC only when vended as such and stored in the TGC cache.


Constructor Summary
TicketGrantingTicket(java.lang.String username)
          Constructs a new, immutable service ticket.
 
Method Summary
 void expire()
          Markes the ticket as expired, preventing its further use and the validity of subordinate tickets "downstream" from it.
 java.lang.String getUsername()
          Retrieves the ticket's username.
 boolean isExpired()
          Returns true if the ticket is expired, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TicketGrantingTicket

public TicketGrantingTicket(java.lang.String username)
Constructs a new, immutable service ticket.

Method Detail

getUsername

public java.lang.String getUsername()
Retrieves the ticket's username.

Specified by:
getUsername in class Ticket

expire

public void expire()
Markes the ticket as expired, preventing its further use and the validity of subordinate tickets "downstream" from it.


isExpired

public boolean isExpired()
Returns true if the ticket is expired, false otherwise.