Class LoginFailedEvent

java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.event.SecurityEvent
io.micronaut.security.event.LoginFailedEvent
All Implemented Interfaces:
Serializable

public class LoginFailedEvent extends SecurityEvent
Event triggered when an unsuccessful login takes place.
Since:
1.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • LoginFailedEvent

      public LoginFailedEvent(Object source, AuthenticationRequest authenticationRequest, String host, Locale locale)
      Event triggered when an unsuccessful login takes place.
      Parameters:
      source - The AuthenticationResponse object signaling the authentication failure and reason.
      authenticationRequest - A request to authenticate.
      host - The hostname from the request if available
      locale - The locale of the request
      Throws:
      IllegalArgumentException - if source is null.
      Since:
      4.7.0
  • Method Details

    • getAuthenticationRequest

      @Nullable public @Nullable AuthenticationRequest getAuthenticationRequest()
      Returns:
      A request to authenticate.
      Since:
      4.1.0