Module org.elasticsearch.security
Class JwtDateClaimValidator
java.lang.Object
org.elasticsearch.xpack.security.authc.jwt.JwtDateClaimValidator
- All Implemented Interfaces:
JwtFieldValidator
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJwtDateClaimValidator(Clock clock, String claimName, org.elasticsearch.core.TimeValue allowedClockSkew, JwtDateClaimValidator.Relationship relationship, boolean allowNull) -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(com.nimbusds.jose.JWSHeader jwsHeader, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet) Validate the given header and claims.
-
Constructor Details
-
JwtDateClaimValidator
public JwtDateClaimValidator(Clock clock, String claimName, org.elasticsearch.core.TimeValue allowedClockSkew, JwtDateClaimValidator.Relationship relationship, boolean allowNull)
-
-
Method Details
-
validate
public void validate(com.nimbusds.jose.JWSHeader jwsHeader, com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet) Description copied from interface:JwtFieldValidatorValidate the given header and claims. Throw exception if the validation fails.- Specified by:
validatein interfaceJwtFieldValidator- Parameters:
jwsHeader- The header section of a JWTjwtClaimsSet- The claims set section of a JWT
-