Class ECDH1PUCryptoProvider

    • Constructor Detail

      • ECDH1PUCryptoProvider

        protected ECDH1PUCryptoProvider​(Curve curve,
                                        SecretKey cek)
                                 throws JOSEException
        Creates a new Elliptic Curve Diffie-Hellman One-Pass Unified Model encryption / decryption provider.
        Parameters:
        curve - The elliptic curve. Must be supported and not null.
        cek - The content encryption key (CEK) to use. If specified its algorithm must be "AES" or "ChaCha20" and its length must match the expected for the JWE encryption method ("enc"). If null a CEK will be generated for each JWE.
        Throws:
        JOSEException - If the elliptic curve is not supported.