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
ConstructorDescriptionLoginFailedEvent
(Object source) Deprecated, for removal: This API element is subject to removal in a future version.LoginFailedEvent
(Object source, AuthenticationRequest authenticationRequest) Deprecated, for removal: This API element is subject to removal in a future version.LoginFailedEvent
(Object source, AuthenticationRequest authenticationRequest, @Nullable String host, Locale locale) Event triggered when an unsuccessful login takes place. -
Method Summary
Methods inherited from class io.micronaut.security.event.SecurityEvent
getHost, getLocale
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LoginFailedEvent
public LoginFailedEvent(Object source, AuthenticationRequest authenticationRequest, @Nullable @Nullable String host, Locale locale) Event triggered when an unsuccessful login takes place.- Parameters:
source
- TheAuthenticationResponse
object 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
-
LoginFailedEvent
@Deprecated(forRemoval=true, since="4.7.0") public LoginFailedEvent(Object source, AuthenticationRequest authenticationRequest) Deprecated, for removal: This API element is subject to removal in a future version.Event triggered when an unsuccessful login takes place.- Parameters:
source
- TheAuthenticationResponse
object signaling the authentication failure and reason.authenticationRequest
- A request to authenticate.- Throws:
IllegalArgumentException
- if source is null.- Since:
- 4.1.0
-
LoginFailedEvent
Deprecated, for removal: This API element is subject to removal in a future version.Event triggered when an unsuccessful login takes place.- Parameters:
source
- TheAuthenticationResponse
object signaling the authentication failure and reason.- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Details
-
getAuthenticationRequest
- Returns:
- A request to authenticate.
- Since:
- 4.1.0
-
LoginFailedEvent(java.lang.Object,io.micronaut.security.authentication.AuthenticationRequest)
.