Bouncy Castle Cryptography Library 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(org.bouncycastle.asn1.cms.SignerIdentifier signerIdentifier, ContentSigner signer, DigestCalculatorProvider digesterProvider)
           
SignerInfoGenerator(org.bouncycastle.asn1.cms.SignerIdentifier signerIdentifier, ContentSigner signer, DigestCalculatorProvider digesterProvider, boolean isDirectSignature)
           
SignerInfoGenerator(org.bouncycastle.asn1.cms.SignerIdentifier signerIdentifier, ContentSigner signer, DigestCalculatorProvider digesterProvider, CMSAttributeTableGenerator sAttrGen, CMSAttributeTableGenerator unsAttrGen)
           
SignerInfoGenerator(SignerInfoGenerator original, CMSAttributeTableGenerator sAttrGen, CMSAttributeTableGenerator unsAttrGen)
           
 
Method Summary
 org.bouncycastle.asn1.cms.SignerInfo generate(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType)
           
 X509CertificateHolder getAssociatedCertificate()
           
 byte[] getCalculatedDigest()
           
 java.io.OutputStream getCalculatingOutputStream()
           
 org.bouncycastle.asn1.x509.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(org.bouncycastle.asn1.cms.SignerIdentifier signerIdentifier,
                           ContentSigner signer,
                           DigestCalculatorProvider digesterProvider)
                    throws OperatorCreationException
Throws:
OperatorCreationException

SignerInfoGenerator

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

SignerInfoGenerator

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

SignerInfoGenerator

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

hasAssociatedCertificate

public boolean hasAssociatedCertificate()

getAssociatedCertificate

public X509CertificateHolder getAssociatedCertificate()

getDigestAlgorithm

public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()

getCalculatingOutputStream

public java.io.OutputStream getCalculatingOutputStream()

generate

public org.bouncycastle.asn1.cms.SignerInfo generate(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType)
                                              throws CMSException
Throws:
CMSException

getCalculatedDigest

public byte[] getCalculatedDigest()

getSignedAttributeTableGenerator

public CMSAttributeTableGenerator getSignedAttributeTableGenerator()

getUnsignedAttributeTableGenerator

public CMSAttributeTableGenerator getUnsignedAttributeTableGenerator()

Bouncy Castle Cryptography Library 1.46