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 Type
    Method
    Description
    void
    validate(org.jose4j.jws.JsonWebSignature jws)
    Custom constraints to be enforced on the token verification process.
  • Method Details

    • validate

      void validate(org.jose4j.jws.JsonWebSignature jws) throws KeyConstraintException
      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.