Bouncy Castle Cryptography 1.46

org.bouncycastle.cms
Class SignerInfoGenerator

java.lang.Object
  extended by org.bouncycastle.cms.SignerInfoGenerator

public class SignerInfoGenerator
extends java.lang.Object


Constructor Summary
SignerInfoGenerator(SignerIdentifier signerIdentifier, org.bouncycastle.operator.ContentSigner signer, org.bouncycastle.operator.DigestCalculatorProvider digesterProvider)
           
SignerInfoGenerator(SignerIdentifier signerIdentifier, org.bouncycastle.operator.ContentSigner signer, org.bouncycastle.operator.DigestCalculatorProvider digesterProvider, boolean isDirectSignature)
           
SignerInfoGenerator(SignerIdentifier signerIdentifier, org.bouncycastle.operator.ContentSigner signer, org.bouncycastle.operator.DigestCalculatorProvider digesterProvider, CMSAttributeTableGenerator sAttrGen, CMSAttributeTableGenerator unsAttrGen)
           
SignerInfoGenerator(SignerInfoGenerator original, CMSAttributeTableGenerator sAttrGen, CMSAttributeTableGenerator unsAttrGen)
           
 
Method Summary
 SignerInfo generate(ASN1ObjectIdentifier contentType)
           
 org.bouncycastle.cert.X509CertificateHolder getAssociatedCertificate()
           
 byte[] getCalculatedDigest()
           
 java.io.OutputStream getCalculatingOutputStream()
           
 AlgorithmIdentifier getDigestAlgorithm()
           
 CMSAttributeTableGenerator getSignedAttributeTableGenerator()
           
 CMSAttributeTableGenerator getUnsignedAttributeTableGenerator()
           
 boolean hasAssociatedCertificate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignerInfoGenerator

public SignerInfoGenerator(SignerIdentifier signerIdentifier,
                           org.bouncycastle.operator.ContentSigner signer,
                           org.bouncycastle.operator.DigestCalculatorProvider digesterProvider)
                    throws org.bouncycastle.operator.OperatorCreationException
Throws:
org.bouncycastle.operator.OperatorCreationException

SignerInfoGenerator

public SignerInfoGenerator(SignerIdentifier signerIdentifier,
                           org.bouncycastle.operator.ContentSigner signer,
                           org.bouncycastle.operator.DigestCalculatorProvider digesterProvider,
                           boolean isDirectSignature)
                    throws org.bouncycastle.operator.OperatorCreationException
Throws:
org.bouncycastle.operator.OperatorCreationException

SignerInfoGenerator

public SignerInfoGenerator(SignerInfoGenerator original,
                           CMSAttributeTableGenerator sAttrGen,
                           CMSAttributeTableGenerator unsAttrGen)

SignerInfoGenerator

public SignerInfoGenerator(SignerIdentifier signerIdentifier,
                           org.bouncycastle.operator.ContentSigner signer,
                           org.bouncycastle.operator.DigestCalculatorProvider digesterProvider,
                           CMSAttributeTableGenerator sAttrGen,
                           CMSAttributeTableGenerator unsAttrGen)
                    throws org.bouncycastle.operator.OperatorCreationException
Throws:
org.bouncycastle.operator.OperatorCreationException
Method Detail

hasAssociatedCertificate

public boolean hasAssociatedCertificate()

getAssociatedCertificate

public org.bouncycastle.cert.X509CertificateHolder getAssociatedCertificate()

getDigestAlgorithm

public AlgorithmIdentifier getDigestAlgorithm()

getCalculatingOutputStream

public java.io.OutputStream getCalculatingOutputStream()

generate

public SignerInfo generate(ASN1ObjectIdentifier contentType)
                    throws CMSException
Throws:
CMSException

getCalculatedDigest

public byte[] getCalculatedDigest()

getSignedAttributeTableGenerator

public CMSAttributeTableGenerator getSignedAttributeTableGenerator()

getUnsignedAttributeTableGenerator

public CMSAttributeTableGenerator getUnsignedAttributeTableGenerator()

Bouncy Castle Cryptography 1.46