Interface JWSVerifierFactory

    • Method Detail

      • createJWSVerifier

        JWSVerifier createJWSVerifier​(JWSHeader header,
                                      Key key)
                               throws JOSEException
        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.