Class JwtTokenValidator<T>

java.lang.Object
io.micronaut.security.token.jwt.validator.JwtTokenValidator<T>
Type Parameters:
T - Request
All Implemented Interfaces:
io.micronaut.core.order.Ordered, TokenValidator<T>

@Deprecated(since="4.8.0", forRemoval=true) public class JwtTokenValidator<T> extends Object implements TokenValidator<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Since:
1.0
Author:
Sergio del Amo
See Also:
  • Field Details

    • jwtAuthenticationFactory

      protected final JwtAuthenticationFactory jwtAuthenticationFactory
      Deprecated, for removal: This API element is subject to removal in a future version.
    • validator

      protected final JwtValidator<T> validator
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

  • Method Details

    • validateToken

      public org.reactivestreams.Publisher<Authentication> validateToken(String token, @Nullable T request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: TokenValidator
      Validates the provided token and returns the authentication state.
      Specified by:
      validateToken in interface TokenValidator<T>
      Parameters:
      token - The token string.
      request - The current request (or null)
      Returns:
      Publishes Authentication based on the JWT or empty if the validation fails.