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 StringauthenticatedPrincipalNameCanonical authenticated principal name.private InstantauthenticationInstantAuthentication instant.private StringauthenticationMethodAuthentication method ID/name/description.private StringsessIdID 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)InstantgetAuthenticationInstant()Get the instant at which the principal authenticated.StringgetAuthenticationMethod()Get the principal authentication method ID/name/description.StringgetPrincipalName()Get the canonical authenticated principal name.StringgetSessionId()Get the ID of the session in which the ticket was created.inthashCode()
-
-
-
Field Detail
-
sessId
@Nonnull private String sessId
ID of session in which ticket is created.
-
authenticatedPrincipalName
@Nonnull private String authenticatedPrincipalName
Canonical authenticated principal name.
-
authenticationInstant
@Nonnull private Instant authenticationInstant
Authentication instant.
-
authenticationMethod
@Nonnull private String authenticationMethod
Authentication method ID/name/description.
-
-
Constructor Detail
-
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 Detail
-
getSessionId
@Nonnull public String getSessionId()
Get the ID of the session in which the ticket was created.- Returns:
- IdP session ID.
-
getPrincipalName
@Nonnull public String getPrincipalName()
Get the canonical authenticated principal name.- Returns:
- Canonical principal.
-
getAuthenticationInstant
@Nonnull public Instant getAuthenticationInstant()
Get the instant at which the principal authenticated.- Returns:
- Principal authentication instant.
-
getAuthenticationMethod
@Nonnull public String getAuthenticationMethod()
Get the principal authentication method ID/name/description.- Returns:
- Principal authentication method.
-
-