Class LoginAuthenticationEvent
Object
se.curity.identityserver.sdk.data.events.AuthenticationEvent
se.curity.identityserver.sdk.data.events.UserAuthenticationEvent
se.curity.identityserver.sdk.data.events.AuthenticationAttemptEvent
se.curity.identityserver.sdk.data.events.LoginAuthenticationEvent
- All Implemented Interfaces:
SerializableAsMap,Event
- Direct Known Subclasses:
SuccessAuthenticationEvent,SuccessSsoAuthenticationEvent
A login authentication event.
- Since:
- 2.2.0
-
Field Summary
Fields inherited from class se.curity.identityserver.sdk.data.events.AuthenticationAttemptEvent
_acr, _oauthClientId, _oauthProfileId, _serviceProviderId, _subject -
Constructor Summary
ConstructorsConstructorDescriptionLoginAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String oauthProfileId, @Nullable String oauthClientId, String profileId) Create a new LoginAuthenticationEvent.LoginAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String serviceProviderId, String profileId) Create a new LoginAuthenticationEvent. -
Method Summary
Modifier and TypeMethodDescriptionasMap()Get a map representation of thisEvent.Get theAuthenticationAttributescreated by the authentication.Returns the instant of authentication.Methods inherited from class se.curity.identityserver.sdk.data.events.AuthenticationAttemptEvent
getAcr, getAuditMessage, getAuditMessagePrologue, getOauthClientId, getOauthProfileId, getServiceProviderId, getSubjectMethods 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
-
LoginAuthenticationEvent
public LoginAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String serviceProviderId, String profileId) Create a new LoginAuthenticationEvent.- Parameters:
sessionId- The ID of the session bound to this loginsubject- The subject of whoever logged inacr- The ACR (Authentication Context Class Reference, i.e., authentication method) used for loginauthenticationAttributes- TheAuthenticationAttributesreturned from the loginauthenticationInstant- The instant in time when the login happenedserviceProviderId- The service provider used for authenticationprofileId- The ID of the profile from which this event originated
-
LoginAuthenticationEvent
public LoginAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String oauthProfileId, @Nullable String oauthClientId, String profileId) Create a new LoginAuthenticationEvent.- Parameters:
sessionId- The ID of the session bound to this loginsubject- The subject of whoever logged inacr- The ACR (Authentication Context Class Reference, i.e., authentication method) used for loginauthenticationAttributes- TheAuthenticationAttributesreturned from the loginauthenticationInstant- The instant in time when the login happenedoauthProfileId- The OAuth profile requesting authenticationoauthClientId- The OAuth client requesting authenticationprofileId- The ID of the profile from which this event originated
-
-
Method Details
-
getAuthenticationInstant
Returns the instant of authentication.- Returns:
- the instant of authentication
-
getAuthenticationAttributes
Get theAuthenticationAttributescreated by the authentication.- Returns:
- the
AuthenticationAttributescreated by the authentication
-
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.
-