Class AlgorithmWhitelist
java.lang.Object
io.confluent.security.authentication.oauthbearer.AlgorithmWhitelist
- All Implemented Interfaces:
Constraint
Constraint restricts signature verification to a specific set of SignatureAlgorithms.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(org.jose4j.jws.JsonWebSignature jws) Ensures JWS was signed using a whitelisted signature algorithm.
-
Constructor Details
-
AlgorithmWhitelist
-
-
Method Details
-
validate
Ensures JWS was signed using a whitelisted signature algorithm.- Specified by:
validatein interfaceConstraint- Parameters:
jws- token to be verified.- Throws:
KeyConstraintException- if was signed with an algorithm which was not whitelisted.
-