| java.lang.Object org.bouncycastle.cms.CMSSignedGenerator org.bouncycastle.cms.CMSSignedDataGenerator
CMSSignedDataGenerator | public class CMSSignedDataGenerator extends CMSSignedGenerator (Code) | | general class for generating a pkcs7-signature message.
A simple example of usage.
CertStore certs...
CMSSignedDataGenerator gen = new CMSSignedDataGenerator();
gen.addSigner(privKey, cert, CMSSignedGenerator.DIGEST_SHA1);
gen.addCertificatesAndCRLs(certs);
CMSSignedData data = gen.generate(content, "BC");
|
Inner Class :static class DigOutputStream extends OutputStream | |
Inner Class :static class SigOutputStream extends OutputStream | |
Method Summary | |
public void | addSigner(PrivateKey key, X509Certificate cert, String digestOID) add a signer - no attributes other than the default ones will be
provided here. | public void | addSigner(PrivateKey key, X509Certificate cert, String digestOID, AttributeTable signedAttr, AttributeTable unsignedAttr) add a signer with extra signed/unsigned attributes. | public void | addSigner(PrivateKey key, X509Certificate cert, String digestOID, CMSAttributeTableGenerator signedAttrGen, CMSAttributeTableGenerator unsignedAttrGen) add a signer with extra signed/unsigned attributes based on generators. | public CMSSignedData | generate(CMSProcessable content, String sigProvider) generate a signed object that for a CMS Signed Data
object using the given provider. | public CMSSignedData | generate(String signedContentType, CMSProcessable content, boolean encapsulate, String sigProvider) generate a signed object that for a CMS Signed Data
object using the given provider - if encapsulate is true a copy
of the message will be included in the signature. | public CMSSignedData | generate(String signedContentType, CMSProcessable content, boolean encapsulate, String sigProvider, boolean addDefaultAttributes) Similar method to the other generate methods. | public CMSSignedData | generate(CMSProcessable content, boolean encapsulate, String sigProvider) generate a signed object that for a CMS Signed Data
object using the given provider - if encapsulate is true a copy
of the message will be included in the signature with the
default content type "data". |
CMSSignedDataGenerator | public CMSSignedDataGenerator()(Code) | | base constructor
|
|
|