Interface PKCS7EnvelopedDataHandler


public interface PKCS7EnvelopedDataHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    buildPKCS7EnvelopedData(Credentials[] credentials, byte[] envelopedData, 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 Details

    • buildPKCS7EnvelopedData

      byte[] buildPKCS7EnvelopedData(Credentials[] credentials, byte[] envelopedData, Map encryptParams) throws 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:
      Exception
    • getEnvelopeData

      byte[] getEnvelopeData(Credentials recipient, byte[] pkcs7) throws 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:
      Exception