Bouncy Castle Cryptography Library 1.46

org.bouncycastle.cms
Class SignerInfoGeneratorBuilder

java.lang.Object
  extended by org.bouncycastle.cms.SignerInfoGeneratorBuilder
Direct Known Subclasses:
JcaSignerInfoGeneratorBuilder

public class SignerInfoGeneratorBuilder
extends java.lang.Object


Constructor Summary
SignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider)
           
 
Method Summary
 SignerInfoGenerator build(ContentSigner contentSigner, byte[] keyIdentifier)
           
 SignerInfoGenerator build(ContentSigner contentSigner, X509CertificateHolder certHolder)
           
 SignerInfoGeneratorBuilder 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.
 SignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)
           
 SignerInfoGeneratorBuilder setUnsignedAttributeGenerator(CMSAttributeTableGenerator unsignedGen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignerInfoGeneratorBuilder

public SignerInfoGeneratorBuilder(DigestCalculatorProvider digestProvider)
Method Detail

setDirectSignature

public SignerInfoGeneratorBuilder 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 SignerInfoGeneratorBuilder setSignedAttributeGenerator(CMSAttributeTableGenerator signedGen)

setUnsignedAttributeGenerator

public SignerInfoGeneratorBuilder 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

Bouncy Castle Cryptography Library 1.46