org.jasig.cas.ticket
Interface ServiceTicket

All Superinterfaces:
java.io.Serializable, Ticket
All Known Implementing Classes:
ServiceTicketImpl

public interface ServiceTicket
extends Ticket

Interface for a Service Ticket. A service ticket is used to grant access to a specific service for a principal. A Service Ticket is generally a one-time use ticket.

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

Field Summary
static java.lang.String PREFIX
          Prefix generally applied to unique ids generated by UniqueIdGenenerator.
 
Method Summary
 Service getService()
          Retrieve the service this ticket was given for.
 TicketGrantingTicket grantTicketGrantingTicket(java.lang.String id, Authentication authentication, ExpirationPolicy expirationPolicy)
          Method to grant a TicketGrantingTicket from this service to the authentication.
 boolean isFromNewLogin()
          Determine if this ticket was created at the same time as a TicketGrantingTicket.
 boolean isValidFor(Service service)
           
 
Methods inherited from interface org.jasig.cas.ticket.Ticket
getCountOfUses, getCreationTime, getGrantingTicket, getId, isExpired
 

Field Detail

PREFIX

static final java.lang.String PREFIX
Prefix generally applied to unique ids generated by UniqueIdGenenerator.

See Also:
Constant Field Values
Method Detail

getService

Service getService()
Retrieve the service this ticket was given for.

Returns:
the server.

isFromNewLogin

boolean isFromNewLogin()
Determine if this ticket was created at the same time as a TicketGrantingTicket.

Returns:
true if it is, false otherwise.

isValidFor

boolean isValidFor(Service service)

grantTicketGrantingTicket

TicketGrantingTicket grantTicketGrantingTicket(java.lang.String id,
                                               Authentication authentication,
                                               ExpirationPolicy expirationPolicy)
Method to grant a TicketGrantingTicket from this service to the authentication. Analogous to the ProxyGrantingTicket.

Parameters:
id - The unique identifier for this ticket.
authentication - The Authentication we wish to grant a ticket for.
Returns:
The ticket granting ticket.


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