Interface JWEDecrypterFactory

    • Method Detail

      • createJWEDecrypter

        JWEDecrypter createJWEDecrypter​(JWEHeader header,
                                        Key key)
                                 throws JOSEException
        Creates a new JWE decrypter for the specified header and key.
        Parameters:
        header - The JWE header. Not null.
        key - The key intended to verify the JWS message. Not null.
        Returns:
        The JWE decrypter.
        Throws:
        JOSEException - If the JWE algorithm / encryption method is not supported or the key type or length doesn't match expected for the JWE algorithm.