Package org.webpki.json
Class JSONDecryptionDecoder
java.lang.Object
org.webpki.json.JSONDecryptionDecoder
Holds parsed JEF (JSON Encryption Format) data.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
JEF (JSON Encryption Format) support. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getDecryptedData
(byte[] dataDecryptionKey) Decrypt data based on a specific symmetric key.byte[]
getDecryptedData
(PrivateKey privateKey) Decrypt data based on a specific private key.byte[]
getDecryptedData
(List<JSONDecryptionDecoder.DecryptionKeyHolder> decryptionKeys) Decrypt data based on a collection of possible [private] keys.getKeyId()
boolean
-
Method Details
-
getPublicKey
-
getCertificatePath
-
getKeyId
-
getContentEncryptionAlgorithm
-
getKeyEncryptionAlgorithm
-
getEncryptionObject
-
getDecryptedData
public byte[] getDecryptedData(byte[] dataDecryptionKey) Decrypt data based on a specific symmetric key.- Parameters:
dataDecryptionKey
- Symmetric key- Returns:
- Decrypted data
-
getDecryptedData
Decrypt data based on a specific private key.- Parameters:
privateKey
- The private key- Returns:
- Decrypted data
-
getDecryptedData
Decrypt data based on a collection of possible [private] keys.- Parameters:
decryptionKeys
- Collection- Returns:
- Decrypted data
-