Class AuthenticationAttemptEvent
Object
se.curity.identityserver.sdk.data.events.AuthenticationEvent
se.curity.identityserver.sdk.data.events.UserAuthenticationEvent
se.curity.identityserver.sdk.data.events.AuthenticationAttemptEvent
- All Implemented Interfaces:
SerializableAsMap,Event
- Direct Known Subclasses:
FailedAuthenticationEvent,LoginAuthenticationEvent
A common base class for authentication events, whether successful or failed.
- Since:
- 6.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAcr()Get the ACR (Authentication Context Class Reference) used for login.protected Stringprotected abstract StringGets the beginning of the audit message.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
asMap, getSessionIdMethods inherited from class se.curity.identityserver.sdk.data.events.AuthenticationEvent
getProfileId, toString
-
Field Details
-
_subject
-
_acr
-
_serviceProviderId
-
_oauthProfileId
-
_oauthClientId
-
-
Constructor Details
-
AuthenticationAttemptEvent
-
-
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
-
getSubject
Get the subject of whoever performed the login. For a failed attempt, this can benull.- Returns:
- the authenticated subject
-
getAuditMessage
-
getAuditMessagePrologue
Gets 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).- Returns:
- a description of the event.
- See Also:
-