Top Fields Constructors Methods
org.bouncycastle.cms

public Class SignerInfoGenerator

extends Object
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.util.Collections, .HashMap, .Map, org.bouncycastle.asn1.ASN1Encoding, .ASN1ObjectIdentifier, .ASN1Set, .DEROctetString, .DERSet, org.bouncycastle.asn1.cms.AttributeTable, .SignerIdentifier, .SignerInfo, org.bouncycastle.asn1.edec.EdECObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.cert.X509CertificateHolder, org.bouncycastle.operator.ContentSigner, .DigestCalculator, org.bouncycastle.util.Arrays, org.bouncycastle.util.io.TeeOutputStream

Field Summary

Modifier and TypeField and Description
private byte[]
private X509CertificateHolder
private final AlgorithmIdentifier
private final DigestCalculator
private final CMSAttributeTableGenerator
private final CMSSignatureEncryptionAlgorithmFinder
private final ContentSigner
private final SignerIdentifier
private final CMSAttributeTableGenerator

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
public

Method Summary

Modifier and TypeMethod and Description
public SignerInfo
public X509CertificateHolder
private ASN1Set
private Map<K, V>
getBaseParameters(ASN1ObjectIdentifier contentType, AlgorithmIdentifier digAlgId, AlgorithmIdentifier sigAlgId, byte[] hash)

public byte[]
public OutputStream
public AlgorithmIdentifier
public int
public SignerIdentifier
public CMSAttributeTableGenerator
public CMSAttributeTableGenerator
public boolean
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

calculatedDigestback to summary
private byte[] calculatedDigest
certHolderback to summary
private X509CertificateHolder certHolder
digestAlgorithmback to summary
private final AlgorithmIdentifier digestAlgorithm
digesterback to summary
private final DigestCalculator digester
sAttrGenback to summary
private final CMSAttributeTableGenerator sAttrGen
sigEncAlgFinderback to summary
private final CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder
signerback to summary
private final ContentSigner signer
signerIdentifierback to summary
private final SignerIdentifier signerIdentifier
unsAttrGenback to summary
private final CMSAttributeTableGenerator unsAttrGen

Constructor Detail

SignerInfoGeneratorback to summary
pack-priv SignerInfoGenerator(SignerIdentifier signerIdentifier, ContentSigner signer, AlgorithmIdentifier digesterAlgorithm, CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder)
SignerInfoGeneratorback to summary
pack-priv SignerInfoGenerator(SignerIdentifier signerIdentifier, ContentSigner signer, DigestCalculator digester, CMSSignatureEncryptionAlgorithmFinder sigEncAlgFinder, CMSAttributeTableGenerator sAttrGen, CMSAttributeTableGenerator unsAttrGen)
SignerInfoGeneratorback to summary
public SignerInfoGenerator(SignerInfoGenerator original, CMSAttributeTableGenerator sAttrGen, CMSAttributeTableGenerator unsAttrGen)

Method Detail

generateback to summary
public SignerInfo generate(ASN1ObjectIdentifier contentType) throws CMSException
getAssociatedCertificateback to summary
public X509CertificateHolder getAssociatedCertificate()
getAttributeSetback to summary
private ASN1Set getAttributeSet(AttributeTable attr)
getBaseParametersback to summary
private Map<K, V> getBaseParameters(ASN1ObjectIdentifier contentType, AlgorithmIdentifier digAlgId, AlgorithmIdentifier sigAlgId, byte[] hash)
getCalculatedDigestback to summary
public byte[] getCalculatedDigest()
getCalculatingOutputStreamback to summary
public OutputStream getCalculatingOutputStream()
getDigestAlgorithmback to summary
public AlgorithmIdentifier getDigestAlgorithm()
getGeneratedVersionback to summary
public int getGeneratedVersion()
getSIDback to summary
public SignerIdentifier getSID()
getSignedAttributeTableGeneratorback to summary
public CMSAttributeTableGenerator getSignedAttributeTableGenerator()
getUnsignedAttributeTableGeneratorback to summary
public CMSAttributeTableGenerator getUnsignedAttributeTableGenerator()
hasAssociatedCertificateback to summary
public boolean hasAssociatedCertificate()
setAssociatedCertificateback to summary
pack-priv void setAssociatedCertificate(X509CertificateHolder certHolder)