public class RefreshTokenGeneratedEvent
extends io.micronaut.context.event.ApplicationEvent
Constructor and Description |
---|
RefreshTokenGeneratedEvent(java.lang.Object source)
Deprecated.
Use
RefreshTokenGeneratedEvent(UserDetails, String) instead |
RefreshTokenGeneratedEvent(UserDetails userDetails,
java.lang.String refreshToken)
Triggered when a refresh token is generated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRefreshToken() |
UserDetails |
getUserDetails() |
@Deprecated public RefreshTokenGeneratedEvent(java.lang.Object source)
RefreshTokenGeneratedEvent(UserDetails, String)
insteadsource
- A String with the JWT refresh token generated.java.lang.IllegalArgumentException
- if source is null.public RefreshTokenGeneratedEvent(UserDetails userDetails, java.lang.String refreshToken)
userDetails
- The user detailsrefreshToken
- The refresh tokenjava.lang.IllegalArgumentException
- if source is null.public UserDetails getUserDetails()
public java.lang.String getRefreshToken()