Class MultiCryptoProvider

java.lang.Object
com.nimbusds.jose.crypto.impl.BaseJWEProvider
com.nimbusds.jose.crypto.impl.MultiCryptoProvider
All Implemented Interfaces:
JCAAware<JWEJCAContext>, JOSEProvider, JWEProvider
Direct Known Subclasses:
MultiDecrypter, MultiEncrypter

public abstract class MultiCryptoProvider extends BaseJWEProvider
Version:
2023-03-24
  • Field Details

  • Constructor Details

    • MultiCryptoProvider

      Creates a new multi-recipient encryption / decryption provider.
      Parameters:
      cek - The Content Encryption Key (CEK). Must be 128 bits (16 bytes), 192 bits (24 bytes), 256 bits (32 bytes), 384 bits (48 bytes) or 512 bits (64 bytes) long. Must not be null.
      Throws:
      KeyLengthException - If the CEK length is not compatible.
  • Method Details

    • supportedEllipticCurves

      Returns the names of the supported elliptic curves. These correspond to the crv EC JWK parameter.
      Returns:
      The supported elliptic curves.