Package io.micronaut.security.event
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
Event triggered when an unsuccessful login takes place.
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionLoginFailedEvent(Object source, AuthenticationRequest authenticationRequest, String host, Locale locale) Event triggered when an unsuccessful login takes place. -
Method Summary
Methods inherited from class io.micronaut.security.event.SecurityEvent
getHost, getLocaleMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LoginFailedEvent
public LoginFailedEvent(Object source, AuthenticationRequest authenticationRequest, String host, Locale locale) Event triggered when an unsuccessful login takes place.- Parameters:
source- TheAuthenticationResponseobject signaling the authentication failure and reason.authenticationRequest- A request to authenticate.host- The hostname from the request if availablelocale- The locale of the request- Throws:
IllegalArgumentException- if source is null.- Since:
- 4.7.0
-
-
Method Details
-
getAuthenticationRequest
- Returns:
- A request to authenticate.
- Since:
- 4.1.0
-