public interface TicketGrantingTicket extends Ticket
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX
The prefix to use when generating an id for a Ticket Granting Ticket.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthentication()
Method to retrieve the authentication.
|
java.util.List<Authentication> |
getChainedAuthentications()
Gets all authentications (
getAuthentication() from this
instance and all dependent tickets that reference this one. |
default java.util.Collection<java.lang.String> |
getDescendantTickets()
Gets descendant tickets.
|
Service |
getProxiedBy()
Gets the service that produced a proxy-granting ticket.
|
java.util.Map<java.lang.String,Service> |
getProxyGrantingTickets()
Gets proxy granting tickets created by this TGT.
|
TicketGrantingTicket |
getRoot()
Gets the ticket-granting ticket at the root of the ticket hierarchy.
|
java.util.Map<java.lang.String,Service> |
getServices()
Gets an immutable map of service ticket and services accessed by this ticket-granting ticket.
|
ServiceTicket |
grantServiceTicket(java.lang.String id,
Service service,
ExpirationPolicy expirationPolicy,
boolean credentialProvided,
boolean onlyTrackMostRecentSession)
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 |
removeAllServices()
Remove all services of the TGT (at logout).
|
getCountOfUses, getCreationTime, getExpirationPolicy, getId, getPrefix, getTicketGrantingTicket, isExpired, markTicketExpired
static final java.lang.String PREFIX
Authentication getAuthentication()
ServiceTicket grantServiceTicket(java.lang.String id, Service service, ExpirationPolicy expirationPolicy, boolean credentialProvided, boolean onlyTrackMostRecentSession)
id
- The unique identifier for this ticket.service
- The service for which we are granting a ticketexpirationPolicy
- the expiration policy.credentialProvided
- current credential event for issuing this ticket. Could be null.onlyTrackMostRecentSession
- track the most recent session by keeping the latest service ticketjava.util.Map<java.lang.String,Service> getServices()
java.util.Map<java.lang.String,Service> getProxyGrantingTickets()
void removeAllServices()
boolean isRoot()
TicketGrantingTicket getRoot()
java.util.List<Authentication> getChainedAuthentications()
getAuthentication()
from this
instance and all dependent tickets that reference this one.Service getProxiedBy()
default java.util.Collection<java.lang.String> getDescendantTickets()