java.lang.Object | |
↳ | org.bouncycastle.cms.jcajce.JcaSimpleSignerInfoGeneratorBuilder |
Use this class if you are using a provider that has all the facilities you need.
For example:
CMSSignedDataGenerator gen = new CMSSignedDataGenerator(); ContentSigner sha1Signer = new JcaContentSignerBuilder("SHA1withRSA").setProvider("BC").build(signKP.getPrivate()); gen.addSignerInfoGenerator( new JcaSignerInfoGeneratorBuilder( new JcaDigestCalculatorProviderBuilder().setProvider("BC").build()) .build(sha1Signer, signCert));becomes:
CMSSignedDataGenerator gen = new CMSSignedDataGenerator(); gen.addSignerInfoGenerator( new JcaSimpleSignerInfoGeneratorBuilder() .setProvider("BC") .build("SHA1withRSA", signKP.getPrivate(), signCert));
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
If the passed in flag is true, the signer signature will be based on the data, not
a collection of signed attributes, and no signed attributes will be included.
| |||||||||||
set up a DefaultSignedAttributeTableGenerator primed with the passed in AttributeTable.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
If the passed in flag is true, the signer signature will be based on the data, not a collection of signed attributes, and no signed attributes will be included.
OperatorCreationException |
---|
OperatorCreationException |
---|
set up a DefaultSignedAttributeTableGenerator primed with the passed in AttributeTable.
attrTable | table of attributes for priming generator |
---|