Package org.bouncycastle.its.jcajce
Class JcaETSIDataDecryptor
java.lang.Object
org.bouncycastle.its.jcajce.JcaETSIDataDecryptor
- All Implemented Interfaces:
ETSIDataDecryptor
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JcaETSIDataDecryptor.Builder
builder
(PrivateKey privateKey, byte[] recipientHash) byte[]
decrypt
(byte[] wrappedKey, byte[] content, byte[] nonce) byte[]
getKey()
return the unwrapped key found in the data.
-
Method Details
-
decrypt
public byte[] decrypt(byte[] wrappedKey, byte[] content, byte[] nonce) - Specified by:
decrypt
in interfaceETSIDataDecryptor
-
getKey
public byte[] getKey()Description copied from interface:ETSIDataDecryptor
return the unwrapped key found in the data. Call after decrypt.- Specified by:
getKey
in interfaceETSIDataDecryptor
- Returns:
- the unwrapped key.
-
builder
-