@Entity public final class ServiceTicketImpl extends AbstractTicket implements ServiceTicket
PREFIX| Modifier | Constructor and Description |
|---|---|
|
ServiceTicketImpl() |
protected |
ServiceTicketImpl(String id,
TicketGrantingTicketImpl ticket,
Service service,
boolean fromNewLogin,
ExpirationPolicy policy)
Constructs a new ServiceTicket with a Unique Id, a TicketGrantingTicket,
a Service, Expiration Policy and a flag to determine if the ticket
creation was from a new Login or not.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Authentication |
getAuthentication()
Authentication information from the ticket.
|
Service |
getService()
Retrieve the service this ticket was given for.
|
TicketGrantingTicket |
grantTicketGrantingTicket(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 serviceToValidate) |
getCountOfUses, getCreationTime, getGrantingTicket, getId, getLastTimeUsed, getPreviousTimeUsed, hashCode, isExpired, isExpiredInternal, toString, updateStateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCountOfUses, getCreationTime, getGrantingTicket, getId, isExpiredpublic ServiceTicketImpl()
protected ServiceTicketImpl(String id, TicketGrantingTicketImpl ticket, Service service, boolean fromNewLogin, ExpirationPolicy policy)
id - the unique identifier for the ticket.ticket - the TicketGrantingTicket parent.service - the service this ticket is for.fromNewLogin - is it from a new login.policy - the expiration policy for the Ticket.IllegalArgumentException - if the TicketGrantingTicket or the
Service are null.public boolean isFromNewLogin()
ServiceTicketisFromNewLogin in interface ServiceTicketpublic Service getService()
ServiceTicketgetService in interface ServiceTicketpublic boolean isValidFor(Service serviceToValidate)
isValidFor in interface ServiceTicketpublic TicketGrantingTicket grantTicketGrantingTicket(String id, Authentication authentication, ExpirationPolicy expirationPolicy)
ServiceTicketgrantTicketGrantingTicket in interface ServiceTicketid - The unique identifier for this ticket.authentication - The Authentication we wish to grant a ticket for.public Authentication getAuthentication()
TicketStategetAuthentication in interface TicketStateCopyright © 2004-2012 Jasig. All Rights Reserved.