Interface JWSVerifierFactory

All Superinterfaces:
JCAAware<JCAContext>, JOSEProvider, JWSProvider
All Known Implementing Classes:
DefaultJWSVerifierFactory

public interface JWSVerifierFactory extends JWSProvider
JSON Web Signature (JWS) verifier factory.
Version:
2015-11-16
Author:
Vladimir Dzhuvinov
  • Method Details

    • createJWSVerifier

      Creates a new JWS verifier for the specified header and key.
      Parameters:
      header - The JWS header. Not null.
      key - The key intended to verify the JWS message. Not null.
      Returns:
      The JWS verifier.
      Throws:
      JOSEException - If the JWS algorithm is not supported or the key type or length doesn't match the expected for the JWS algorithm.