@Entity public final class TicketGrantingTicketImpl extends AbstractTicket implements TicketGrantingTicket
PREFIX| Constructor and Description |
|---|
TicketGrantingTicketImpl() |
TicketGrantingTicketImpl(String id,
Authentication authentication,
ExpirationPolicy policy)
Constructs a new TicketGrantingTicket without a parent
TicketGrantingTicket.
|
TicketGrantingTicketImpl(String id,
TicketGrantingTicket ticketGrantingTicket,
Authentication authentication,
ExpirationPolicy policy)
Constructs a new TicketGrantingTicket.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Authentication |
getAuthentication()
Method to retrieve the authentication.
|
List<Authentication> |
getChainedAuthentications()
Gets all authentications (
TicketGrantingTicket.getAuthentication(), TicketGrantingTicket.getSupplementalAuthentications()) from this
instance and all dependent tickets that reference this one. |
TicketGrantingTicket |
getRoot()
Gets the ticket-granting ticket at the root of the ticket hierarchy.
|
Map<String,Service> |
getServices()
Gets an immutable map of service ticket and services accessed by this ticket-granting ticket.
|
List<Authentication> |
getSupplementalAuthentications()
Gets a list of supplemental authentications associated with this ticket.
|
ServiceTicket |
grantServiceTicket(String id,
Service service,
ExpirationPolicy expirationPolicy,
boolean credentialsProvided)
Grant a ServiceTicket for a specific service.
|
boolean |
isExpiredInternal()
Return if the TGT is expired.
|
boolean |
isRoot()
Return if the TGT has no parent.
|
void |
markTicketExpired()
Mark a ticket as expired.
|
void |
removeAllServices()
Remove all services of the TGT (at logout).
|
getCountOfUses, getCreationTime, getGrantingTicket, getId, getLastTimeUsed, getPreviousTimeUsed, hashCode, isExpired, toString, updateStateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCountOfUses, getCreationTime, getGrantingTicket, getId, isExpiredpublic TicketGrantingTicketImpl()
public TicketGrantingTicketImpl(String id, TicketGrantingTicket ticketGrantingTicket, Authentication authentication, ExpirationPolicy policy)
IllegalArgumentException if the Authentication object is null.id - the id of the TicketticketGrantingTicket - the parent ticketauthentication - the Authentication request for this ticketpolicy - the expiration policy for this ticket.public TicketGrantingTicketImpl(String id, Authentication authentication, ExpirationPolicy policy)
id - the id of the Ticketauthentication - the Authentication request for this ticketpolicy - the expiration policy for this ticket.public Authentication getAuthentication()
getAuthentication in interface TicketGrantingTicketgetAuthentication in interface TicketStatepublic ServiceTicket grantServiceTicket(String id, Service service, ExpirationPolicy expirationPolicy, boolean credentialsProvided)
The state of the ticket is affected by this operation and the ticket will be considered used. The state update subsequently may impact the ticket expiration policy in that, depending on the policy configuration, the ticket may be considered expired.
grantServiceTicket in interface TicketGrantingTicketid - The unique identifier for this ticket.service - The service for which we are granting a ticketexpirationPolicy - the expiration policy.credentialsProvided - if the credentials are provided.public Map<String,Service> getServices()
getServices in interface TicketGrantingTicketpublic void removeAllServices()
removeAllServices in interface TicketGrantingTicketpublic boolean isRoot()
isRoot in interface TicketGrantingTicketpublic void markTicketExpired()
markTicketExpired in interface TicketGrantingTicketpublic TicketGrantingTicket getRoot()
getRoot in interface TicketGrantingTicketpublic boolean isExpiredInternal()
isExpiredInternal in class AbstractTicketpublic List<Authentication> getSupplementalAuthentications()
getSupplementalAuthentications in interface TicketGrantingTicketpublic List<Authentication> getChainedAuthentications()
TicketGrantingTicket.getAuthentication(), TicketGrantingTicket.getSupplementalAuthentications()) from this
instance and all dependent tickets that reference this one.getChainedAuthentications in interface TicketGrantingTicketCopyright © 2004-2015 Apereo. All Rights Reserved.