Class CmsSignedDataGenerator
- Namespace
- Enterprises.Org.BouncyCastle.Cms
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
public class CmsSignedDataGenerator : CmsSignedGenerator
- Inheritance
-
CmsSignedDataGenerator
- Inherited Members
-
Constructors
CmsSignedDataGenerator()
public CmsSignedDataGenerator()
CmsSignedDataGenerator(SecureRandom)
public CmsSignedDataGenerator(SecureRandom rand)
Parameters
rand SecureRandom
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, ICmsAttributeTableGenerator, ICmsAttributeTableGenerator)
public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string digestOID, ICmsAttributeTableGenerator signedAttrGen, ICmsAttributeTableGenerator unsignedAttrGen)
Parameters
privateKey AsymmetricKeyParameter
cert X509Certificate
digestOID string
signedAttrGen ICmsAttributeTableGenerator
unsignedAttrGen ICmsAttributeTableGenerator
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, ICmsAttributeTableGenerator, ICmsAttributeTableGenerator)
public void AddSigner(AsymmetricKeyParameter privateKey, X509Certificate cert, string encryptionOID, string digestOID, ICmsAttributeTableGenerator signedAttrGen, ICmsAttributeTableGenerator unsignedAttrGen)
Parameters
privateKey AsymmetricKeyParameter
cert X509Certificate
encryptionOID string
digestOID string
signedAttrGen ICmsAttributeTableGenerator
unsignedAttrGen ICmsAttributeTableGenerator
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, ICmsAttributeTableGenerator, ICmsAttributeTableGenerator)
public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string digestOID, ICmsAttributeTableGenerator signedAttrGen, ICmsAttributeTableGenerator unsignedAttrGen)
Parameters
privateKey AsymmetricKeyParameter
subjectKeyID byte[]
digestOID string
signedAttrGen ICmsAttributeTableGenerator
unsignedAttrGen ICmsAttributeTableGenerator
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, ICmsAttributeTableGenerator, ICmsAttributeTableGenerator)
public void AddSigner(AsymmetricKeyParameter privateKey, byte[] subjectKeyID, string encryptionOID, string digestOID, ICmsAttributeTableGenerator signedAttrGen, ICmsAttributeTableGenerator unsignedAttrGen)
Parameters
privateKey AsymmetricKeyParameter
subjectKeyID byte[]
encryptionOID string
digestOID string
signedAttrGen ICmsAttributeTableGenerator
unsignedAttrGen ICmsAttributeTableGenerator
AddSignerInfoGenerator(SignerInfoGenerator)
public void AddSignerInfoGenerator(SignerInfoGenerator signerInfoGenerator)
Parameters
signerInfoGenerator SignerInfoGenerator
Generate(ICmsProcessable)
public CmsSignedData Generate(ICmsProcessable content)
Parameters
content ICmsProcessable
Returns
- CmsSignedData
Generate(ICmsProcessable, bool)
public CmsSignedData Generate(ICmsProcessable content, bool encapsulate)
Parameters
content ICmsProcessable
encapsulate bool
Returns
- CmsSignedData
Generate(string, ICmsProcessable, bool)
public CmsSignedData Generate(string signedContentType, ICmsProcessable content, bool encapsulate)
Parameters
signedContentType string
content ICmsProcessable
encapsulate bool
Returns
- CmsSignedData
public SignerInformationStore GenerateCounterSigners(SignerInformation signer)
Parameters
signer SignerInformation
Returns
- SignerInformationStore