Interface PKCS7EnvelopedDataHandler
-
public interface PKCS7EnvelopedDataHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
buildPKCS7EnvelopedData(Credentials[] credentials, byte[] envelopedData, java.util.Map encryptParams)
This API takes the credentials and encrypt parameters using which it encrypts enveloped data.byte[]
getEnvelopeData(Credentials recipient, byte[] pkcs7)
This API takes the credentials and encrypted enveloped data packet.
-
-
-
Method Detail
-
buildPKCS7EnvelopedData
byte[] buildPKCS7EnvelopedData(Credentials[] credentials, byte[] envelopedData, java.util.Map encryptParams) throws java.lang.Exception
This API takes the credentials and encrypt parameters using which it encrypts enveloped data. It creates the enveloped data packet which has all the information and encrypted data and encrypted key. This enveloped data is being returned.
- Parameters:
credentials
-envelopedData
-encryptParams
-- Returns:
- byte[]
- Throws:
java.lang.Exception
-
getEnvelopeData
byte[] getEnvelopeData(Credentials recipient, byte[] pkcs7) throws java.lang.Exception
This API takes the credentials and encrypted enveloped data packet. Using the information stored in the packet and credentials decrypt the enveloped data and returns the decrypted data.
- Parameters:
recipient
-pkcs7
-- Returns:
- byte[]
- Throws:
java.lang.Exception
-
-