java.lang.Object | ||
↳ | org.bouncycastle.cms.CMSEnvelopedGenerator | |
↳ | org.bouncycastle.cms.CMSEnvelopedDataStreamGenerator |
General class for generating a CMS enveloped-data message stream.
A simple example of usage.
CMSEnvelopedDataStreamGenerator edGen = new CMSEnvelopedDataStreamGenerator(); edGen.addRecipientInfoGenerator(new JceKeyTransRecipientInfoGenerator(recipientCert).setProvider("BC")); ByteArrayOutputStream bOut = new ByteArrayOutputStream(); OutputStream out = edGen.open( bOut, new JceCMSContentEncryptorBuilder(CMSAlgorithm.DES_EDE3_CBC) .setProvider("BC").build()); out.write(data); out.close();
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.cms.CMSEnvelopedGenerator
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.cms.CMSEnvelopedGenerator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
base constructor
| |||||||||||
constructor allowing specific source of randomness
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
No replacement.
| |||||||||||
generate an enveloped object that contains an CMS Enveloped Data
object using the given encryptor.
| |||||||||||
generate an enveloped object that contains an CMS Enveloped Data
object using the given encryptor and marking the data as being of the passed
in type.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
This method is deprecated.
No replacement.
| |||||||||||
Use a BER Set to store the recipient information
| |||||||||||
Set the underlying string size for encapsulated data
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.cms.CMSEnvelopedGenerator
| |||||||||||
From class
java.lang.Object
|
base constructor
constructor allowing specific source of randomness
rand | instance of SecureRandom to use |
---|
This method is deprecated.
No replacement.
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.
generate an enveloped object that contains an CMS Enveloped Data object using the given encryptor.
CMSException | |
---|---|
IOException |
generate an enveloped object that contains an CMS Enveloped Data object using the given encryptor and marking the data as being of the passed in type.
CMSException | |
---|---|
IOException |
This method is deprecated.
No replacement.
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.
IOException | |
CMSException | |
IOException | |
NoSuchAlgorithmException | |
NoSuchProviderException |
This method is deprecated.
No replacement.
generate an enveloped object that contains an CMS Enveloped Data object using the given provider.
Use a BER Set to store the recipient information
Set the underlying string size for encapsulated data
bufferSize | length of octet strings to buffer the data. |
---|
CMSException |
---|
IOException |
---|