SignedCmsBuilder Class

Contains properties and methods to construct and (optionally) sign PKCS#7/CMS message.

Definition

Namespace: SysadminsLV.PKI.Cryptography.Pkcs
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public sealed class SignedCmsBuilder
Inheritance
Object    SignedCmsBuilder

Constructors

SignedCmsBuilder(DefaultSignedPkcs7) Initializes a new instance of SignedCmsBuilder from existing Signed CMS. Data from existing CMS is copied to builder and can be modified.
SignedCmsBuilder(Oid, Byte) Initializes a new instance of SignedCmsBuilder from content type identifier and optional content.

Properties

Certificates Gets a collection of certificates contained in signed message.
ContentType Gets the object identifier that identifies the content type stored in current object.
DigestAlgorithms Gets a collection of hashing algorithms.
RevocationLists Gets an array of certificate revocation lists contained in the message.
SignerInfos Gets a collection of signer infos. This collection is read-only and populated automatically by signing current object.
Version Gets the version of the CMS/PKCS#7 message. Currently, only version 1 is defined.

Methods

AddTimestamp Attaches a timestamp to signed CMS object.
Encode Encodes CMS without signing.
Equals
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
Sign Signs current PKCS#7 message and adds a new signer information to SignerInfos collection. Certificates specified in chain parameter are added to Certificates collection.
ToString
(Inherited from Object)

See Also