Class AccessTokenGeneratedEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.token.event.AccessTokenGeneratedEvent
- All Implemented Interfaces:
Serializable
public class AccessTokenGeneratedEvent
extends io.micronaut.context.event.ApplicationEvent
Triggered when a JWT access token is generated.
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAccessTokenGeneratedEvent(Object source) Triggered when a JWT access token is generated. -
Method Summary
Methods inherited from class EventObject
getSource
-
Constructor Details
-
AccessTokenGeneratedEvent
Triggered when a JWT access token is generated.- Parameters:
source- A String with the JWT access token generated.- Throws:
IllegalArgumentException- if source is null.
-
-
Method Details
-
toString
The string representation never includes the access token. Micronaut logs every published event at DEBUG using its string representation, so exposing it would write the access token to the log.- Overrides:
toStringin classEventObject- Returns:
- The string representation of the event with the access token redacted.
- Since:
- 5.5.2
-