Package org.bouncycastle.cms.jcajce
Class JcaSignerInfoGeneratorBuilder
java.lang.Object
org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder
public class JcaSignerInfoGeneratorBuilder extends Object
-
Constructor Summary
Constructors Constructor Description JcaSignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider) -
Method Summary
Modifier and Type Method Description SignerInfoGeneratorbuild(ContentSigner contentSigner, byte[] keyIdentifier)SignerInfoGeneratorbuild(ContentSigner contentSigner, X509Certificate certificate)SignerInfoGeneratorbuild(ContentSigner contentSigner, X509CertificateHolder certHolder)JcaSignerInfoGeneratorBuildersetDirectSignature(boolean hasNoSignedAttributes)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.JcaSignerInfoGeneratorBuildersetSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)JcaSignerInfoGeneratorBuildersetUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
-
Constructor Details
-
JcaSignerInfoGeneratorBuilder
-
-
Method Details
-
setDirectSignature
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.- Returns:
- the builder object
-
setSignedAttributeGenerator
public JcaSignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen) -
setUnsignedAttributeGenerator
public JcaSignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen) -
build
public SignerInfoGenerator build(ContentSigner contentSigner, X509CertificateHolder certHolder) throws OperatorCreationException- Throws:
OperatorCreationException
-
build
public SignerInfoGenerator build(ContentSigner contentSigner, byte[] keyIdentifier) throws OperatorCreationException- Throws:
OperatorCreationException
-
build
public SignerInfoGenerator build(ContentSigner contentSigner, X509Certificate certificate) throws OperatorCreationException, CertificateEncodingException
-