Package net.shibboleth.idp.cas.ticket
Class TicketState
java.lang.Object
net.shibboleth.idp.cas.ticket.TicketState
public class TicketState extends Object
Supplemental state data to be stored with a ticket.
-
Field Summary
Fields Modifier and Type Field Description private String
authenticatedPrincipalName
Canonical authenticated principal name.private Instant
authenticationInstant
Authentication instant.private String
authenticationMethod
Authentication method ID/name/description.private String
sessId
ID of session in which ticket is created. -
Constructor Summary
Constructors Constructor Description TicketState(String sessionId, String principalName, Instant authnInstant, String authnMethod)
Creates a new instance with required fields. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Instant
getAuthenticationInstant()
Get the instant at which the principal authenticated.String
getAuthenticationMethod()
Get the principal authentication method ID/name/description.String
getPrincipalName()
Get the canonical authenticated principal name.String
getSessionId()
Get the ID of the session in which the ticket was created.int
hashCode()
-
Field Details
-
sessId
ID of session in which ticket is created. -
authenticatedPrincipalName
Canonical authenticated principal name. -
authenticationInstant
Authentication instant. -
authenticationMethod
Authentication method ID/name/description.
-
-
Constructor Details
-
TicketState
public TicketState(@Nonnull String sessionId, @Nonnull String principalName, @Nonnull Instant authnInstant, @Nonnull String authnMethod)Creates a new instance with required fields.- Parameters:
sessionId
- ID of the session in which the ticket was createdprincipalName
- canonical authenticated principal nameauthnInstant
- instant at which the principal authenticatedauthnMethod
- principal authentication method ID/name/description
-
-
Method Details
-
getSessionId
Get the ID of the session in which the ticket was created.- Returns:
- IdP session ID.
-
getPrincipalName
Get the canonical authenticated principal name.- Returns:
- Canonical principal.
-
getAuthenticationInstant
Get the instant at which the principal authenticated.- Returns:
- Principal authentication instant.
-
getAuthenticationMethod
Get the principal authentication method ID/name/description.- Returns:
- Principal authentication method.
-
equals
-
hashCode
public int hashCode()
-