public interface TicketGrantingTicket extends Ticket
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX
The prefix to use when generating an id for a TicketGrantingTicket.
|
| Modifier and Type | Method and Description |
|---|---|
Authentication |
getAuthentication()
Method to retrieve the authentication.
|
List<Authentication> |
getChainedAuthentications()
Gets all authentications (
getAuthentication(), 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 |
isRoot()
Convenience method to determine if the TicketGrantingTicket is the root
of the hierarchy of tickets.
|
void |
markTicketExpired()
Mark a ticket as expired.
|
void |
removeAllServices()
Remove all services of the TGT (at logout).
|
getCountOfUses, getCreationTime, getGrantingTicket, getId, isExpiredstatic final String PREFIX
Authentication getAuthentication()
List<Authentication> getSupplementalAuthentications()
ServiceTicket grantServiceTicket(String id, Service service, ExpirationPolicy expirationPolicy, boolean credentialsProvided)
id - 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.Map<String,Service> getServices()
void removeAllServices()
void markTicketExpired()
boolean isRoot()
TicketGrantingTicket getRoot()
List<Authentication> getChainedAuthentications()
getAuthentication(), getSupplementalAuthentications()) from this
instance and all dependent tickets that reference this one.Copyright © 2004-2015 Apereo. All Rights Reserved.