Package org.webpki.crypto
Class EncryptionCore.AsymmetricEncryptionResult
java.lang.Object
org.webpki.crypto.EncryptionCore.AsymmetricEncryptionResult
- Enclosing class:
EncryptionCore
Return object for ECDH and RSA encryptions.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Get unencrypted content encryption key.byte[]
Get encrypted key.Get ephemeral key.
-
Method Details
-
getContentEncryptionKey
public byte[] getContentEncryptionKey()Get unencrypted content encryption key.- Returns:
- Content encryption key
-
getEncryptedKey
public byte[] getEncryptedKey()Get encrypted key.This element is defined for key wrapping algorithms which currently include all but
ECDH-ES
.- Returns:
- Encrypted key or
null
-
getEphemeralKey
Get ephemeral key.This element is defined for all
ECDH*
algorithms.- Returns:
- Ephemeral key or
null
-