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

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

public class ServiceTicket
extends Ticket

Represents a CAS service ticket (ST).


Constructor Summary
ServiceTicket(edu.yale.its.tp.cas.ticket.TicketGrantingTicket t, java.lang.String service)
          Constructs a new, immutable service ticket.
 
Method Summary
 edu.yale.its.tp.cas.ticket.TicketGrantingTicket getGrantor()
          Returns the ticket's grantor.
 java.lang.String getService()
          Retrieves the ticket's service.
 java.lang.String getUsername()
          Retrieves the ticket's username.
 boolean isValid()
          Returns true if it would be appropriate to confer access to the service returned by getService() at the present point in time, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceTicket

public ServiceTicket(edu.yale.its.tp.cas.ticket.TicketGrantingTicket t,
                     java.lang.String service)
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

getService

public java.lang.String getService()
Retrieves the ticket's service.


isValid

public boolean isValid()
Returns true if it would be appropriate to confer access to the service returned by getService() at the present point in time, false otherwise.


getGrantor

public edu.yale.its.tp.cas.ticket.TicketGrantingTicket getGrantor()
Returns the ticket's grantor.