Package net.shibboleth.idp.cas.ticket
Class ProxyGrantingTicket
java.lang.Object
net.shibboleth.idp.cas.ticket.Ticket
net.shibboleth.idp.cas.ticket.ProxyGrantingTicket
CAS proxy-granting ticket.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxyGrantingTicket
(String id, String service, Instant expiration, String parentId) Creates a proxy-granting ticket with the given values. -
Method Summary
Modifier and TypeMethodDescriptionGet ID of parent proxy-granting ticket.boolean
isRoot()
Determines whether this proxy-granting ticket is the root of a proxy chain.protected Ticket
newInstance
(String newId) Create a new ticket with this ticket's service and expiration.Methods inherited from class net.shibboleth.idp.cas.ticket.Ticket
clone, equals, getExpirationInstant, getId, getService, getSessionId, getTicketState, hashCode, setTicketState, toString
-
Field Details
-
parentPgTicketId
The ID of the parent proxy-granting ticket.
-
-
Constructor Details
-
ProxyGrantingTicket
public ProxyGrantingTicket(@Nonnull String id, @Nonnull String service, @Nonnull Instant expiration, @Nullable String parentId) Creates a proxy-granting ticket with the given values.- Parameters:
id
- Ticket ID.service
- Service that requested the ticket.expiration
- Expiration instant.parentId
- ID of parent proxy-granting ticket or null if this is first proxy in chain.
-
-
Method Details
-
getParentId
Get ID of parent proxy-granting ticket.- Returns:
- ID of parent proxy-granting ticket
-
isRoot
public boolean isRoot()Determines whether this proxy-granting ticket is the root of a proxy chain.- Returns:
- True if this proxy-granting ticket has no parent, false otherwise.
-
newInstance
Description copied from class:Ticket
Create a new ticket with this ticket's service and expiration.- Overrides:
newInstance
in classTicket
- Parameters:
newId
- new ticket ID- Returns:
- newly created ticket
-