org.bouncycastle.cms

Class CMSEnvelopedDataGenerator

public class CMSEnvelopedDataGenerator extends CMSEnvelopedGenerator

General class for generating a CMS enveloped-data message. A simple example of usage.
      CMSEnvelopedDataGenerator  fact = new CMSEnvelopedDataGenerator();

      fact.addKeyTransRecipient(cert);

      CMSEnvelopedData         data = fact.generate(content, algorithm, "BC");
 
Constructor Summary
CMSEnvelopedDataGenerator()
base constructor
Method Summary
CMSEnvelopedDatagenerate(CMSProcessable content, String encryptionOID, String provider)
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.
CMSEnvelopedDatagenerate(CMSProcessable content, String encryptionOID, int keySize, String provider)
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.

Constructor Detail

CMSEnvelopedDataGenerator

public CMSEnvelopedDataGenerator()
base constructor

Method Detail

generate

public CMSEnvelopedData generate(CMSProcessable content, String encryptionOID, String provider)
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.

generate

public CMSEnvelopedData generate(CMSProcessable content, String encryptionOID, int keySize, String provider)
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.