Class DefaultAccessRefreshTokenGenerator

java.lang.Object
io.micronaut.security.token.jwt.generator.DefaultAccessRefreshTokenGenerator
All Implemented Interfaces:
AccessRefreshTokenGenerator

@Singleton public class DefaultAccessRefreshTokenGenerator extends Object implements AccessRefreshTokenGenerator
Generates http responses with access and refresh token.
Since:
1.0
Author:
Sergio del Amo
  • Field Details

    • beanContext

      protected final io.micronaut.context.BeanContext beanContext
    • refreshTokenGenerator

      protected final RefreshTokenGenerator refreshTokenGenerator
    • claimsGenerator

      protected final ClaimsGenerator claimsGenerator
    • accessTokenConfiguration

      protected final AccessTokenConfiguration accessTokenConfiguration
    • tokenRenderer

      protected final TokenRenderer tokenRenderer
    • tokenGenerator

      protected final TokenGenerator tokenGenerator
    • refreshTokenGeneratedEventPublisher

      protected final io.micronaut.context.event.ApplicationEventPublisher<RefreshTokenGeneratedEvent> refreshTokenGeneratedEventPublisher
    • accessTokenGeneratedEventPublisher

      protected final io.micronaut.context.event.ApplicationEventPublisher<AccessTokenGeneratedEvent> accessTokenGeneratedEventPublisher
  • Constructor Details

    • DefaultAccessRefreshTokenGenerator

      public DefaultAccessRefreshTokenGenerator(AccessTokenConfiguration accessTokenConfiguration, TokenRenderer tokenRenderer, TokenGenerator tokenGenerator, io.micronaut.context.BeanContext beanContext, @Nullable RefreshTokenGenerator refreshTokenGenerator, ClaimsGenerator claimsGenerator, io.micronaut.context.event.ApplicationEventPublisher<RefreshTokenGeneratedEvent> refreshTokenGeneratedEventPublisher, io.micronaut.context.event.ApplicationEventPublisher<AccessTokenGeneratedEvent> accessTokenGeneratedEventPublisher)
      Parameters:
      accessTokenConfiguration - The access token generator config
      tokenRenderer - The token renderer
      tokenGenerator - The token generator
      beanContext - Bean Context
      refreshTokenGenerator - The refresh token generator
      claimsGenerator - Claims generator
      refreshTokenGeneratedEventPublisher - The Application event publisher for RefreshTokenGeneratedEvent.
      accessTokenGeneratedEventPublisher - The Application event publisher for AccessTokenGeneratedEvent.
  • Method Details