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