Package io.micronaut.security.event
Class LoginFailedEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.event.LoginFailedEvent
- All Implemented Interfaces:
Serializable
public class LoginFailedEvent
extends io.micronaut.context.event.ApplicationEvent
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) Event triggered when an unsuccessful login takes place. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LoginFailedEvent
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)
.