Package net.shibboleth.idp.cas.ticket
Class ProxyTicket
- java.lang.Object
-
- net.shibboleth.idp.cas.ticket.Ticket
-
- net.shibboleth.idp.cas.ticket.ProxyTicket
-
public class ProxyTicket extends Ticket
CAS proxy ticket.
-
-
Field Summary
Fields Modifier and Type Field Description private StringpgTicketIdProxy-granting ticket ID used to create ticket.
-
Constructor Summary
Constructors Constructor Description ProxyTicket(String id, String service, Instant expiration, String pgtId)Creates a new authenticated ticket with an identifier, service, and expiration date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPgtId()Get the proxy-granting ticket ID used to create ticket.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
-
pgTicketId
@Nonnull private final String pgTicketId
Proxy-granting ticket ID used to create ticket.
-
-
Constructor Detail
-
ProxyTicket
public ProxyTicket(@Nonnull String id, @Nonnull String service, @Nonnull Instant expiration, @Nonnull String pgtId)Creates a new authenticated ticket with an identifier, service, and expiration date.- Parameters:
id- Ticket ID.service- Service that requested the ticket.expiration- Expiration instant.pgtId- Proxy-granting ticket ID used to create ticket.
-
-
Method Detail
-
getPgtId
@Nonnull public String getPgtId()
Get the proxy-granting ticket ID used to create ticket.- Returns:
- proxy-granting ticket ID used to create ticket
-
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
-
-