@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,
TicketGrantingTicketImpl ticketGrantingTicket,
Authentication authentication,
ExpirationPolicy policy)
Constructs a new TicketGrantingTicket.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
void |
expire()
Explicitly expire a ticket.
|
Authentication |
getAuthentication()
Method to retrieve the authentication.
|
List<Authentication> |
getChainedAuthentications()
Method to retrieve the chained list of Authentications for this
TicketGrantingTicket.
|
ServiceTicket |
grantServiceTicket(String id,
Service service,
ExpirationPolicy expirationPolicy,
boolean credentialsProvided)
Grant a ServiceTicket for a specific service.
|
boolean |
isExpiredInternal() |
boolean |
isRoot()
Convenience method to determine if the TicketGrantingTicket is the root
of the hierarchy of tickets.
|
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, TicketGrantingTicketImpl ticketGrantingTicket, Authentication authentication, ExpirationPolicy policy)
id - the id of the TicketticketGrantingTicket - the parent ticketauthentication - the Authentication request for this ticketpolicy - the expiration policy for this ticket.IllegalArgumentException - if the Authentication object is nullpublic 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()
TicketGrantingTicketgetAuthentication in interface TicketGrantingTicketgetAuthentication in interface TicketStatepublic ServiceTicket grantServiceTicket(String id, Service service, ExpirationPolicy expirationPolicy, boolean credentialsProvided)
TicketGrantingTicketgrantServiceTicket in interface TicketGrantingTicketid - The unique identifier for this ticket.service - The service for which we are granting a ticketpublic boolean isRoot()
TicketGrantingTicketisRoot in interface TicketGrantingTicketpublic void expire()
TicketGrantingTicketexpire in interface TicketGrantingTicketpublic boolean isExpiredInternal()
isExpiredInternal in class AbstractTicketpublic List<Authentication> getChainedAuthentications()
TicketGrantingTicketgetChainedAuthentications in interface TicketGrantingTicketCopyright © 2004-2012 Jasig. All Rights Reserved.