Class ECDHCryptoProvider

java.lang.Object
com.nimbusds.jose.crypto.impl.BaseJWEProvider
com.nimbusds.jose.crypto.impl.ECDHCryptoProvider
All Implemented Interfaces:
JCAAware<JWEJCAContext>, JOSEProvider, JWEProvider
Direct Known Subclasses:
ECDHDecrypter, ECDHEncrypter, X25519Decrypter, X25519Encrypter

public abstract class ECDHCryptoProvider extends BaseJWEProvider
Version:
2023-09-10
Author:
Tim McLean, Vladimir Dzhuvinov, Fernando González Callejas, Egor Puzanov
  • Field Details

  • Constructor Details

    • 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.
  • Method Details