Class SuccessAuthenticationEvent
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
se.curity.identityserver.sdk.data.events.SuccessAuthenticationEvent
- All Implemented Interfaces:
SerializableAsMap,AuditableEvent,Event
Event fired at successful authentication.
- Since:
- 2.2.0
-
Field Summary
Fields inherited from class se.curity.identityserver.sdk.data.events.AuthenticationAttemptEvent
_acr, _oauthClientId, _oauthProfileId, _serviceProviderId, _subject -
Constructor Summary
ConstructorsConstructorDescriptionSuccessAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String oauthProfileId, @Nullable String oauthClientId, String profileId) Creates a newSuccessAuthenticationEvent.SuccessAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String serviceProviderId, String profileId) Creates a newSuccessAuthenticationEvent. -
Method Summary
Methods inherited from class se.curity.identityserver.sdk.data.events.LoginAuthenticationEvent
asMap, getAuthenticationAttributes, getAuthenticationInstantMethods inherited from class se.curity.identityserver.sdk.data.events.AuthenticationAttemptEvent
getAcr, getAuditMessage, 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
-
SuccessAuthenticationEvent
public SuccessAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String serviceProviderId, String profileId) Creates a newSuccessAuthenticationEvent.- Parameters:
sessionId- The ID of the session bound to this authenticationsubject- The subject of the authenticationacr- The ACR (Authentication Context Class Reference) used for authenticationauthenticationAttributes- TheAuthenticationAttributesreturned from authenticationauthenticationInstant- The instant in time when the authentication happenedserviceProviderId- The service provider used for authenticationprofileId- The ID of the profile from which this event originated
-
SuccessAuthenticationEvent
public SuccessAuthenticationEvent(String sessionId, String subject, String acr, AuthenticationAttributes authenticationAttributes, Instant authenticationInstant, @Nullable String oauthProfileId, @Nullable String oauthClientId, String profileId) Creates a newSuccessAuthenticationEvent.- Parameters:
sessionId- The ID of the session bound to this authenticationsubject- The subject of the authenticationacr- The ACR (Authentication Context Class Reference) used for authenticationauthenticationAttributes- TheAuthenticationAttributesreturned from authenticationauthenticationInstant- The instant in time when the authentication happenedoauthProfileId- The OAuth profile requesting authenticationoauthClientId- The OAuth client requesting authenticationprofileId- The ID of the profile from which this event originated
-
-
Method Details
-
getAuditData
Description copied from interface:AuditableEventGet allAuditDataassociated with this auditable event.This method must always return the same instant of
AuditData.- Specified by:
getAuditDatain interfaceAuditableEvent- Returns:
- the
AuditDataconcisely describing the auditable data of this event
-
getAuditMessagePrologue
Description copied from class:AuthenticationAttemptEventGets the beginning of the audit message. The "prologue" should describe the event, and will be followed by further details (service provider, OAuth client, OAuth profile).- Specified by:
getAuditMessageProloguein classAuthenticationAttemptEvent- Returns:
- a description of the event.
- See Also:
-