Package net.shibboleth.idp.cas.ticket
Class ProxyGrantingTicket
- java.lang.Object
-
- net.shibboleth.idp.cas.ticket.Ticket
-
- net.shibboleth.idp.cas.ticket.ProxyGrantingTicket
-
public class ProxyGrantingTicket extends Ticket
CAS proxy-granting ticket.
-
-
Field Summary
Fields Modifier and Type Field Description private StringparentPgTicketIdThe ID of the parent proxy-granting ticket.
-
Constructor Summary
Constructors Constructor Description ProxyGrantingTicket(String id, String service, Instant expiration, String parentId)Creates a proxy-granting ticket with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParentId()Get ID of parent proxy-granting ticket.booleanisRoot()Determines whether this proxy-granting ticket is the root of a proxy chain.protected TicketnewInstance(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 Detail
-
parentPgTicketId
@Nullable private String parentPgTicketId
The ID of the parent proxy-granting ticket.
-
-
Constructor Detail
-
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 Detail
-
getParentId
@Nullable public String 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
protected Ticket newInstance(String newId)
Description copied from class:TicketCreate a new ticket with this ticket's service and expiration.- Overrides:
newInstancein classTicket- Parameters:
newId- new ticket ID- Returns:
- newly created ticket
-
-