Class AuthenticationAttemptEvent

All Implemented Interfaces:
SerializableAsMap, Event
Direct Known Subclasses:
FailedAuthenticationEvent, LoginAuthenticationEvent

public abstract class AuthenticationAttemptEvent extends UserAuthenticationEvent
A common base class for authentication events, whether successful or failed.
Since:
6.7
  • Field Details

  • Constructor Details

  • Method Details

    • getAcr

      public String getAcr()
      Get the ACR (Authentication Context Class Reference) used for login.
      Returns:
      the ACR of the authenticator
    • getServiceProviderId

      @Nullable public @Nullable String getServiceProviderId()
      Get the ID of the service provider used for login.
      Returns:
      the service provider ID
    • getOauthProfileId

      @Nullable public @Nullable String getOauthProfileId()
      Get the ID of the OAuth profile requesting authentication.
      Returns:
      the OAuth profile ID
    • getOauthClientId

      @Nullable public @Nullable String getOauthClientId()
      Get the ID of the OAuth client requesting authentication.
      Returns:
      the OAuth client ID
    • getSubject

      @Nullable public @Nullable String getSubject()
      Get the subject of whoever performed the login. For a failed attempt, this can be null.
      Returns:
      the authenticated subject
    • getAuditMessage

      protected String getAuditMessage()
    • getAuditMessagePrologue

      protected abstract String 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: