Package io.micronaut.security.event
Class TokenValidatedEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.event.SecurityEvent
io.micronaut.security.event.TokenValidatedEvent
- All Implemented Interfaces:
Serializable
Triggered when a token is validated.
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTokenValidatedEvent
(Object source) Deprecated, for removal: This API element is subject to removal in a future version.TokenValidatedEvent
(Object source, @Nullable String host, Locale locale) Triggered when a token is validated. -
Method Summary
Methods inherited from class io.micronaut.security.event.SecurityEvent
getHost, getLocale
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
TokenValidatedEvent
Triggered when a token is validated.- Parameters:
source
- A String containing the token being validated.host
- The hostname from the request if availablelocale
- The locale of the request- Throws:
IllegalArgumentException
- if source is null.- Since:
- 4.7.0
-
TokenValidatedEvent
Deprecated, for removal: This API element is subject to removal in a future version.UseTokenValidatedEvent(Object, String, Locale)
insteadTriggered when a token is validated.- Parameters:
source
- A String containing the token being validated.- Throws:
IllegalArgumentException
- if source is null.
-
TokenValidatedEvent(Object, String, Locale)
instead