Class ECDH1PUCryptoProvider

java.lang.Object
com.nimbusds.jose.crypto.impl.BaseJWEProvider
com.nimbusds.jose.crypto.impl.ECDH1PUCryptoProvider
All Implemented Interfaces:
JCAAware<JWEJCAContext>, JOSEProvider, JWEProvider
Direct Known Subclasses:
ECDH1PUDecrypter, ECDH1PUEncrypter, ECDH1PUX25519Decrypter, ECDH1PUX25519Encrypter

public abstract class ECDH1PUCryptoProvider extends BaseJWEProvider
The base abstract class for Elliptic Curve Diffie-Hellman One-Pass Unified Model encrypters and decrypters of JWE objects.

Supports the following key management algorithms:

Supports the following elliptic curves:

Supports the following content encryption algorithms for Direct key agreement mode:

Supports the following content encryption algorithms for Key wrapping mode:

Version:
2023-09-10
Author:
Alexander Martynov, Egor Puzanov
  • Field Details

  • Constructor Details

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