Class IssuerJwtClaimsValidator<T>

java.lang.Object
io.micronaut.security.token.jwt.validator.IssuerJwtClaimsValidator<T>
Type Parameters:
T - Request
All Implemented Interfaces:
GenericJwtClaimsValidator<T>, JwtClaimsValidator<T>

@Singleton @Requires(property="micronaut.security.token.jwt.claims-validators.issuer") public class IssuerJwtClaimsValidator<T> extends Object implements GenericJwtClaimsValidator<T>
Validates JWT issuer claim matches a configured value.
Since:
2.4.0
Author:
Jason Schindler, Sergio del Amo
  • Field Details

  • Constructor Details

    • IssuerJwtClaimsValidator

      public IssuerJwtClaimsValidator(JwtClaimsValidatorConfiguration jwtClaimsValidatorConfiguration)
      Parameters:
      jwtClaimsValidatorConfiguration - JWT Claims Validator Configuration
  • Method Details

    • validate

      public boolean validate(@NonNull @NonNull Claims claims, @Nullable T request)
      Specified by:
      validate in interface JwtClaimsValidator<T>
      Parameters:
      claims - JWT Claims
      request - HTTP request
      Returns:
      whether the JWT claims pass validation.