Class SessionEvent
Object
se.curity.identityserver.sdk.data.events.AuthenticationEvent
se.curity.identityserver.sdk.data.events.UserAuthenticationEvent
se.curity.identityserver.sdk.data.events.SessionEvent
- All Implemented Interfaces:
SerializableAsMap,Event
- Direct Known Subclasses:
CreatedSsoSessionEvent
A session event.
- Since:
- 2.3.1
-
Constructor Summary
ConstructorsConstructorDescriptionSessionEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String serviceProviderId, @Nullable String oauthProfileId, @Nullable String oauthClientId, String profileId) SessionEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String oauthProfileId, @Nullable String oauthClientId, String profileId) SessionEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String serviceProviderId, String profileId) -
Method Summary
Modifier and TypeMethodDescriptionasMap()Get a map representation of thisEvent.getAcr()Get the ACR (Authentication Context Class Reference) used for login.Get theAuthenticationAttributescreated by the authentication.Returns the instant of authentication.Get the ID of the OAuth client requesting authentication.Get the ID of the OAuth profile requesting authentication.Get the ID of the service provider used for login.Get the subject of whoever performed the login.Methods inherited from class se.curity.identityserver.sdk.data.events.UserAuthenticationEvent
getSessionIdMethods inherited from class se.curity.identityserver.sdk.data.events.AuthenticationEvent
getProfileId, toString
-
Constructor Details
-
SessionEvent
-
SessionEvent
-
SessionEvent
-
-
Method Details
-
getAcr
Get the ACR (Authentication Context Class Reference) used for login.- Returns:
- the ACR of the authenticator
-
getServiceProviderId
Get the ID of the service provider used for login.- Returns:
- the service provider ID
-
getOauthProfileId
Get the ID of the OAuth profile requesting authentication.- Returns:
- the OAuth profile ID
-
getOauthClientId
Get the ID of the OAuth client requesting authentication.- Returns:
- the OAuth client ID
-
getAuthenticationAttributes
Get theAuthenticationAttributescreated by the authentication.- Returns:
- the
AuthenticationAttributescreated by the authentication
-
getAuthenticationInstant
Returns the instant of authentication.- Returns:
- the instant of authentication
-
getSubject
Get the subject of whoever performed the login.- Returns:
- the authenticated subject
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Overrides:
asMapin classUserAuthenticationEvent- Returns:
- a
Maprepresentation of thisEvent. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()and enriching the returned mutableMapwith the more specific information added by the sub-type.
-