org.jasig.cas.ticket
Interface Ticket

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ServiceTicket, TicketGrantingTicket
All Known Implementing Classes:
AbstractTicket, ServiceTicketImpl, TicketGrantingTicketImpl

public interface Ticket
extends java.io.Serializable

Interface for the generic concept of a ticket.

Since:
3.0
Version:
$Revision: 42053 $ $Date: 2007-06-10 09:17:55 -0400 (Sun, 10 Jun 2007) $
Author:
Scott Battaglia

Method Summary
 int getCountOfUses()
          Returns the number of times this ticket was used.
 long getCreationTime()
          Method to return the time the Ticket was created.
 TicketGrantingTicket getGrantingTicket()
          Method to retrive the TicketGrantingTicket that granted this ticket.
 java.lang.String getId()
          Method to retrieve the id.
 boolean isExpired()
          Determines if the ticket is expired.
 

Method Detail

getId

java.lang.String getId()
Method to retrieve the id.

Returns:
the id

isExpired

boolean isExpired()
Determines if the ticket is expired. Most common implementations might collaborate with ExpirationPolicy strategy.

See Also:
ExpirationPolicy

getGrantingTicket

TicketGrantingTicket getGrantingTicket()
Method to retrive the TicketGrantingTicket that granted this ticket.

Returns:
the ticket or null if it has no parent

getCreationTime

long getCreationTime()
Method to return the time the Ticket was created.

Returns:
the time the ticket was created.

getCountOfUses

int getCountOfUses()
Returns the number of times this ticket was used.

Returns:


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.