Class ECDHCryptoProvider

    • Constructor Detail

      • ECDHCryptoProvider

        protected ECDHCryptoProvider​(Curve curve,
                                     SecretKey cek)
                              throws JOSEException
        Creates a new Elliptic Curve Diffie-Hellman 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.