@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)
Attempts to ensure that the service specified matches the service associated with the ticket.
|
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)
The state of the ticket is affected by this operation and the ticket will be considered used regardless of the match result. The state update subsequently may impact the ticket expiration policy in that, depending on the policy configuration, the ticket may be considered expired.
isValidFor in interface ServiceTicketserviceToValidate - The incoming service to match this service ticket against.public 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.expirationPolicy - expiration policy associated with this ticketpublic Authentication getAuthentication()
TicketStategetAuthentication in interface TicketStateCopyright © 2004-2014 Jasig. All Rights Reserved.