Package org.webpki.cbor
Class CBORAsymKeyEncrypter
Class for asymmetric key encryption.
-
Constructor Summary
ConstructorDescriptionCBORAsymKeyEncrypter
(PublicKey publicKey, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Creates an encrypter object. -
Method Summary
Modifier and TypeMethodDescriptionsetPublicKeyOption
(boolean wantPublicKey) Define if public key should be included.Methods inherited from class org.webpki.cbor.CBOREncrypter
encrypt, setIntercepter, setKeyId
-
Constructor Details
-
CBORAsymKeyEncrypter
public CBORAsymKeyEncrypter(PublicKey publicKey, KeyEncryptionAlgorithms keyEncryptionAlgorithm, ContentEncryptionAlgorithms contentEncryptionAlgorithm) Creates an encrypter object.- Parameters:
publicKey
- Encryption keykeyEncryptionAlgorithm
- Key encryption algorithmcontentEncryptionAlgorithm
- Content encryption algorithm
-
-
Method Details
-
setPublicKeyOption
Define if public key should be included.- Parameters:
wantPublicKey
- Flag. Default: false.- Returns:
this
-