Class RefreshTokenGeneratedEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.security.token.event.RefreshTokenGeneratedEvent
- All Implemented Interfaces:
Serializable
public class RefreshTokenGeneratedEvent
extends io.micronaut.context.event.ApplicationEvent
Triggered when a JWT refresh token is generated.
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionRefreshTokenGeneratedEvent
(Authentication authentication, String refreshToken) Triggered when a refresh token is generated. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
RefreshTokenGeneratedEvent
Triggered when a refresh token is generated.- Parameters:
authentication
- The user detailsrefreshToken
- The refresh token- Throws:
IllegalArgumentException
- if source is null.
-
-
Method Details
-
getAuthentication
- Returns:
- The user details
-
getRefreshToken
- Returns:
- The refresh token
-