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, io.micronaut.security.token.validator.TokenValidator<T>

@Deprecated(since="4.8.0", forRemoval=true) public class JwtTokenValidator<T> extends Object implements io.micronaut.security.token.validator.TokenValidator<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Since:
1.0
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<io.micronaut.security.authentication.Authentication> validateToken(String token, @Nullable T request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      validateToken in interface io.micronaut.security.token.validator.TokenValidator<T>
      Parameters:
      token - The token string.
      Returns:
      Publishes Authentication based on the JWT or empty if the validation fails.