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 Details

    • parentPgTicketId

      @Nullable private String 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

      @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: Ticket
      Create a new ticket with this ticket's service and expiration.
      Overrides:
      newInstance in class Ticket
      Parameters:
      newId - new ticket ID
      Returns:
      newly created ticket