Package net.shibboleth.idp.cas.ticket
Class TicketState
java.lang.Object
net.shibboleth.idp.cas.ticket.TicketState
Supplemental state data to be stored with a ticket.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringCanonical authenticated principal name.private InstantAuthentication instant.private StringAuthentication method ID/name/description.Attribute IDs that were consented to during the ticket request.private StringID of session in which ticket is created. -
Constructor Summary
ConstructorsConstructorDescriptionTicketState(String sessionId, String principalName, Instant authnInstant, String authnMethod) Creates a new instance with required fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the instant at which the principal authenticated.Get the principal authentication method ID/name/description.Get the attribute IDs that were consented to during the request.Get the canonical authenticated principal name.Get the ID of the session in which the ticket was created.inthashCode()voidsetConsentedAttributeIds(Collection<String> attributeIds) Set the attribute IDs that were consented to during the request.
-
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. -
consentedAttributeIds
Attribute IDs that were consented to during the ticket request.
-
-
Constructor Details
-
TicketState
public TicketState(@Nullable 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.
-
getConsentedAttributeIds
Get the attribute IDs that were consented to during the request.- Returns:
- immutable set of attribute IDs
- Since:
- 4.2.0
-
setConsentedAttributeIds
Set the attribute IDs that were consented to during the request.- Parameters:
attributeIds- attribute IDs- Since:
- 4.2.0
-
equals
-
hashCode
public int hashCode()
-