Class JwtAlgorithmValidator

java.lang.Object
org.elasticsearch.xpack.security.authc.jwt.JwtAlgorithmValidator
All Implemented Interfaces:
JwtFieldValidator

public class JwtAlgorithmValidator extends Object implements JwtFieldValidator
  • Constructor Details

    • JwtAlgorithmValidator

      public JwtAlgorithmValidator(List<String> allowedAlgorithms)
  • Method Details

    • validate

      public void validate(com.nimbusds.jose.JWSHeader jwsHeader, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
      Description copied from interface: JwtFieldValidator
      Validate the given header and claims. Throw exception if the validation fails.
      Specified by:
      validate in interface JwtFieldValidator
      Parameters:
      jwsHeader - The header section of a JWT
      jwtClaimsSet - The claims set section of a JWT