Interface Constraint
- All Known Implementing Classes:
AlgorithmWhitelist
public interface Constraint
An interface for adding custom constraints to the token verification process.
See also
ConstrainedVerificationKeyResolver-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(org.jose4j.jws.JsonWebSignature jws) Custom constraints to be enforced on the token verification process.
-
Method Details
-
validate
Custom constraints to be enforced on the token verification process. See Implementations for details.- Parameters:
jws- JWS to be verified.- Throws:
KeyConstraintException- if constraint has been violated.
-