Class CBORAsymKeyEncrypter

java.lang.Object
org.webpki.cbor.CBOREncrypter
org.webpki.cbor.CBORAsymKeyEncrypter

public class CBORAsymKeyEncrypter extends CBOREncrypter
Class for asymmetric key encryption.
  • Constructor Details

    • CBORAsymKeyEncrypter

      public CBORAsymKeyEncrypter(PublicKey publicKey, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm)
      Initializes an encrypter object.
      Parameters:
      publicKey - Encryption key
      keyEncryptionAlgorithm - Key encryption algorithm
      contentEncryptionAlgorithm - Content encryption algorithm
  • Method Details

    • setPublicKeyOption

      public CBORAsymKeyEncrypter setPublicKeyOption(boolean wantPublicKey)
      Defines if public key should be included.
      Parameters:
      wantPublicKey - Flag. Default: false.
      Returns:
      this