Package net.shibboleth.idp.cas.ticket
Class ServiceTicket
java.lang.Object
net.shibboleth.idp.cas.ticket.Ticket
net.shibboleth.idp.cas.ticket.ServiceTicket
CAS service ticket.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServiceTicket
(String id, String service, Instant expiration, boolean renew) Creates a new authenticated ticket with an identifier, service, and expiration date. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isRenew()
Get whether ticket was issued from forced authentication.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
-
forceAuthn
private final boolean forceAuthnForced authentication flag.
-
-
Constructor Details
-
ServiceTicket
public ServiceTicket(@Nonnull String id, @Nonnull String service, @Nonnull Instant expiration, boolean renew) 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.renew
- True if ticket was issued from forced authentication, false otherwise.
-
-
Method Details
-
isRenew
public boolean isRenew()Get whether ticket was issued from forced authentication.- Returns:
- true if ticket was issued from forced authentication, false otherwise
-
newInstance
Create a new ticket with this ticket's service and expiration.- Overrides:
newInstance
in classTicket
- Parameters:
newId
- new ticket ID- Returns:
- newly created ticket
-