Class JwtX5tValidator
java.lang.Object
com.sap.cloud.security.token.validation.validators.JwtX5tValidator
Validates if the jwt access token is intended for the OAuth2 client of this application, in certificate based
authentication scenario. The cnf claim provides the SHA-256 thumbprint of the X.509 certificate information, this
information needs to match the thumbprint of the provided certificate.
Validates whether there 'cnf' thumbprint value matches with the X509 certificate from the request.
Validator is by default disabled. It can be activated by setting environment variable 'X5T_VALIDATOR_ENABLED' to true.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionValidates the cnf thumbprint of X509 certificate against trusted certificate's thumbprint.
-
Constructor Details
-
JwtX5tValidator
-
-
Method Details
-
validate
Validates the cnf thumbprint of X509 certificate against trusted certificate's thumbprint.In case audience contains only a single value, thumbprint comparison is not performed and request is validated. To guarantee that this single audience is trusted, use this validator in combination with
JwtAudienceValidator
-