Class CBORAsymKeyEncrypter


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

    • CBORAsymKeyEncrypter

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

    • setPublicKeyOption

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