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:
  • Constructor Details

    • RefreshTokenGeneratedEvent

      public RefreshTokenGeneratedEvent(Authentication authentication, String refreshToken)
      Triggered when a refresh token is generated.
      Parameters:
      authentication - The user details
      refreshToken - The refresh token
      Throws:
      IllegalArgumentException - if source is null.
  • Method Details

    • getAuthentication

      public Authentication getAuthentication()
      Returns:
      The user details
    • getRefreshToken

      public String getRefreshToken()
      Returns:
      The refresh token