java.lang.Object | |||
↳ | org.bouncycastle.cms.CMSEnvelopedGenerator | ||
↳ | org.bouncycastle.cms.CMSAuthenticatedGenerator | ||
↳ | org.bouncycastle.cms.CMSAuthenticatedDataGenerator |
General class for generating a CMS authenticated-data message. A simple example of usage.
CMSAuthenticatedDataGenerator fact = new CMSAuthenticatedDataGenerator(); adGen.addRecipientInfoGenerator(new JceKeyTransRecipientInfoGenerator(recipientCert).setProvider("BC")); CMSAuthenticatedData data = fact.generate(new CMSProcessableByteArray(data), new JceCMSMacCalculatorBuilder(CMSAlgorithm.DES_EDE3_CBC).setProvider(BC).build()));
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.cms.CMSEnvelopedGenerator
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.cms.CMSAuthenticatedGenerator
| |||||||||||
From class
org.bouncycastle.cms.CMSEnvelopedGenerator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
base constructor
| |||||||||||
This constructor is deprecated.
no longer required, use simple constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
use addRecipientInfoGenerator method.
| |||||||||||
Generate an authenticated data object from the passed in typedData and MacCalculator.
| |||||||||||
Generate an authenticated data object from the passed in typedData and MacCalculator.
| |||||||||||
This method is deprecated.
use addRecipientInfoGenerator method..
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.bouncycastle.cms.CMSAuthenticatedGenerator
| |||||||||||
From class
org.bouncycastle.cms.CMSEnvelopedGenerator
| |||||||||||
From class
java.lang.Object
|
base constructor
This constructor is deprecated.
no longer required, use simple constructor.
constructor allowing specific source of randomness
rand | instance of SecureRandom to use |
---|
This method is deprecated.
use addRecipientInfoGenerator method.
generate an authenticated object that contains an CMS Authenticated Data object using the given provider.
Generate an authenticated data object from the passed in typedData and MacCalculator.
typedData | the data to have a MAC attached. |
---|---|
macCalculator | the calculator of the MAC to be attached. |
digestCalculator | calculator for computing digest of the encapsulated data. |
CMSException | on failure in encoding data or processing recipients. |
---|
Generate an authenticated data object from the passed in typedData and MacCalculator.
typedData | the data to have a MAC attached. |
---|---|
macCalculator | the calculator of the MAC to be attached. |
CMSException | on failure in encoding data or processing recipients. |
---|
This method is deprecated.
use addRecipientInfoGenerator method..
generate an authenticated object that contains an CMS Authenticated Data object using the given provider