org.bouncycastle.cms.jcajce
Class JcaSignerInfoGeneratorBuilder
java.lang.Object
org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder
public class JcaSignerInfoGeneratorBuilder
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcaSignerInfoGeneratorBuilder
public JcaSignerInfoGeneratorBuilder(org.bouncycastle.operator.DigestCalculatorProvider digestProvider)
setDirectSignature
public JcaSignerInfoGeneratorBuilder setDirectSignature(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.
- Returns:
- the builder object
setSignedAttributeGenerator
public JcaSignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)
setUnsignedAttributeGenerator
public JcaSignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
build
public SignerInfoGenerator build(org.bouncycastle.operator.ContentSigner contentSigner,
org.bouncycastle.cert.X509CertificateHolder certHolder)
throws org.bouncycastle.operator.OperatorCreationException
- Throws:
org.bouncycastle.operator.OperatorCreationException
build
public SignerInfoGenerator build(org.bouncycastle.operator.ContentSigner contentSigner,
byte[] keyIdentifier)
throws org.bouncycastle.operator.OperatorCreationException
- Throws:
org.bouncycastle.operator.OperatorCreationException
build
public SignerInfoGenerator build(org.bouncycastle.operator.ContentSigner contentSigner,
java.security.cert.X509Certificate certificate)
throws org.bouncycastle.operator.OperatorCreationException,
java.security.cert.CertificateEncodingException
- Throws:
org.bouncycastle.operator.OperatorCreationException
java.security.cert.CertificateEncodingException