Package io.micronaut.security.event
Class LoginSuccessfulEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.event.SecurityEvent
io.micronaut.security.event.LoginSuccessfulEvent
- All Implemented Interfaces:
Serializable
Event triggered when a successful login takes place.
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionLoginSuccessfulEvent
(Object source) Deprecated, for removal: This API element is subject to removal in a future version.LoginSuccessfulEvent
(Object source, @Nullable String host, Locale locale) Event triggered when a successful 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
-
LoginSuccessfulEvent
Event triggered when a successful login takes place.- Parameters:
source
- theAuthentication
of the person logging in.host
- The hostname from the request if availablelocale
- The locale of the request- Throws:
IllegalArgumentException
- if source is null.- Since:
- 4.7.0
-
LoginSuccessfulEvent
Deprecated, for removal: This API element is subject to removal in a future version.UseLoginSuccessfulEvent(Object, String, Locale)
insteadEvent triggered when a successful login takes place.- Parameters:
source
- theAuthentication
of the person logging in.- Throws:
IllegalArgumentException
- if source is null.
-
LoginSuccessfulEvent(Object, String, Locale)
instead