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

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

public class ProxyGrantingTicket
extends TicketGrantingTicket

Represents a CAS proxy-granting ticket (PGT), used to retrieve proxy tickets (PTs). Note that we extend TicketGrantingTicket; this doesn't mean we can act as a TGC: a TicketCache for TGCs will never store a PGT.


Constructor Summary
ProxyGrantingTicket(edu.yale.its.tp.cas.ticket.ServiceTicket parent, java.lang.String proxyId)
          Constructs a new, immutable ProxyGrantingTicket.
 
Method Summary
 edu.yale.its.tp.cas.ticket.ServiceTicket getParent()
          Returns the ticket that was exchanged for this ProxyGrantingTicket.
 java.util.List getProxies()
          Retrieves trust chain.
 java.lang.String getProxyService()
          Returns the identifier for the service to whom this ticket will grant proxy tickets.
 java.lang.String getUsername()
          Retrieves the ticket's username.
 boolean isExpired()
          Returns true if the ticket (or any ticket in its grantor chain) is expired, false otherwise.
 
Methods inherited from class edu.yale.its.tp.cas.ticket.TicketGrantingTicket
expire
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyGrantingTicket

public ProxyGrantingTicket(edu.yale.its.tp.cas.ticket.ServiceTicket parent,
                           java.lang.String proxyId)
Constructs a new, immutable ProxyGrantingTicket.

Method Detail

getUsername

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

Overrides:
getUsername in class TicketGrantingTicket

getParent

public edu.yale.its.tp.cas.ticket.ServiceTicket getParent()
Returns the ticket that was exchanged for this ProxyGrantingTicket.


getProxyService

public java.lang.String getProxyService()
Returns the identifier for the service to whom this ticket will grant proxy tickets.


getProxies

public java.util.List getProxies()
Retrieves trust chain.


isExpired

public boolean isExpired()
Returns true if the ticket (or any ticket in its grantor chain) is expired, false otherwise.

Overrides:
isExpired in class TicketGrantingTicket