Table of Contents

Class CmsSignedDataGenerator

Namespace
Org.BouncyCastle.Cms
Assembly
BouncyCastle.Cryptography.dll
public class CmsSignedDataGenerator : CmsSignedGenerator
Inheritance
CmsSignedDataGenerator
Inherited Members

Constructors

CmsSignedDataGenerator()

public CmsSignedDataGenerator()

CmsSignedDataGenerator(SecureRandom)

Constructor allowing specific source of randomness

public CmsSignedDataGenerator(SecureRandom random)

Parameters

random SecureRandom

Instance of SecureRandom to use.

Properties

UseDefiniteLength

public bool UseDefiniteLength { get; set; }

Property Value

bool

Methods

AddSigner(AsymmetricKeyParameter, X509Certificate, string)

public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID)

Parameters

privateKey AsymmetricKeyParameter
cert X509Certificate
digestOID string

AddSigner(AsymmetricKeyParameter, X509Certificate, string, AttributeTable, AttributeTable)

public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID, AttributeTable signedAttr, AttributeTable unsignedAttr)

Parameters

privateKey AsymmetricKeyParameter
cert X509Certificate
digestOID string
signedAttr AttributeTable
unsignedAttr AttributeTable

AddSigner(AsymmetricKeyParameter, X509Certificate, string, CmsAttributeTableGenerator, CmsAttributeTableGenerator)

public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen)

Parameters

privateKey AsymmetricKeyParameter
cert X509Certificate
digestOID string
signedAttrGen CmsAttributeTableGenerator
unsignedAttrGen CmsAttributeTableGenerator

AddSigner(AsymmetricKeyParameter, X509Certificate, string, string)

public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string encryptionOID, string digestOID)

Parameters

privateKey AsymmetricKeyParameter
cert X509Certificate
encryptionOID string
digestOID string

AddSigner(AsymmetricKeyParameter, X509Certificate, string, string, AttributeTable, AttributeTable)

public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string encryptionOID, string digestOID, AttributeTable signedAttr, AttributeTable unsignedAttr)

Parameters

privateKey AsymmetricKeyParameter
cert X509Certificate
encryptionOID string
digestOID string
signedAttr AttributeTable
unsignedAttr AttributeTable

AddSigner(AsymmetricKeyParameter, X509Certificate, string, string, CmsAttributeTableGenerator, CmsAttributeTableGenerator)

public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string encryptionOID, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen)

Parameters

privateKey AsymmetricKeyParameter
cert X509Certificate
encryptionOID string
digestOID string
signedAttrGen CmsAttributeTableGenerator
unsignedAttrGen CmsAttributeTableGenerator

AddSigner(AsymmetricKeyParameter, byte[], string)

public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string digestOID)

Parameters

privateKey AsymmetricKeyParameter
subjectKeyID byte[]
digestOID string

AddSigner(AsymmetricKeyParameter, byte[], string, AttributeTable, AttributeTable)

public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string digestOID, AttributeTable signedAttr, AttributeTable unsignedAttr)

Parameters

privateKey AsymmetricKeyParameter
subjectKeyID byte[]
digestOID string
signedAttr AttributeTable
unsignedAttr AttributeTable

AddSigner(AsymmetricKeyParameter, byte[], string, CmsAttributeTableGenerator, CmsAttributeTableGenerator)

public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen)

Parameters

privateKey AsymmetricKeyParameter
subjectKeyID byte[]
digestOID string
signedAttrGen CmsAttributeTableGenerator
unsignedAttrGen CmsAttributeTableGenerator

AddSigner(AsymmetricKeyParameter, byte[], string, string)

public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string encryptionOID, string digestOID)

Parameters

privateKey AsymmetricKeyParameter
subjectKeyID byte[]
encryptionOID string
digestOID string

AddSigner(AsymmetricKeyParameter, byte[], string, string, AttributeTable, AttributeTable)

public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string encryptionOID, string digestOID, AttributeTable signedAttr, AttributeTable unsignedAttr)

Parameters

privateKey AsymmetricKeyParameter
subjectKeyID byte[]
encryptionOID string
digestOID string
signedAttr AttributeTable
unsignedAttr AttributeTable

AddSigner(AsymmetricKeyParameter, byte[], string, string, CmsAttributeTableGenerator, CmsAttributeTableGenerator)

public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string encryptionOID, string digestOID, CmsAttributeTableGenerator signedAttrGen, CmsAttributeTableGenerator unsignedAttrGen)

Parameters

privateKey AsymmetricKeyParameter
subjectKeyID byte[]
encryptionOID string
digestOID string
signedAttrGen CmsAttributeTableGenerator
unsignedAttrGen CmsAttributeTableGenerator

AddSignerInfoGenerator(SignerInfoGenerator)

public void AddSignerInfoGenerator(SignerInfoGenerator signerInfoGenerator)

Parameters

signerInfoGenerator SignerInfoGenerator

Generate(CmsProcessable)

public CmsSignedData Generate(CmsProcessable content)

Parameters

content CmsProcessable

Returns

CmsSignedData

Generate(CmsProcessable, bool)

public CmsSignedData Generate(CmsProcessable content, bool encapsulate)

Parameters

content CmsProcessable
encapsulate bool

Returns

CmsSignedData

Generate(string, CmsProcessable, bool)

public CmsSignedData Generate(string signedContentType, CmsProcessable content, bool encapsulate)

Parameters

signedContentType string
content CmsProcessable
encapsulate bool

Returns

CmsSignedData

GenerateCounterSigners(SignerInformation)

public SignerInformationStore GenerateCounterSigners(SignerInformation signer)

Parameters

signer SignerInformation

Returns

SignerInformationStore