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()));
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CMSAuthenticatedData | Returns: the resulting CMSAuthenticatedData object.the data to have a MAC attached. typedData, MacCalculator the calculator of the MAC to be attached. macCalculator)Generate an authenticated data object from the passed in typedData and MacCalculator. |
| public CMSAuthenticatedData | Returns: the resulting CMSAuthenticatedData object.the data to have a MAC attached. typedData, MacCalculator the calculator of the MAC to be attached. macCalculator, final DigestCalculator calculator for computing digest of the encapsulated data. digestCalculator)Generate an authenticated data object from the passed in typedData and MacCalculator. |
| CMSAuthenticatedDataGenerator | back to summary |
|---|---|
| public CMSAuthenticatedDataGenerator() base constructor | |
| generate | back to summary |
|---|---|
| public CMSAuthenticatedData generate(CMSTypedData typedData, MacCalculator macCalculator) throws CMSException Generate an authenticated data object from the passed in typedData and MacCalculator.
| |
| generate | back to summary |
|---|---|
| public CMSAuthenticatedData generate(CMSTypedData typedData, MacCalculator macCalculator, final DigestCalculator digestCalculator) throws CMSException Generate an authenticated data object from the passed in typedData and MacCalculator.
| |