CmsSigner Class

Definition

Represents a potential signer for a CMS/PKCS#7 signed message.

public ref class CmsSigner sealed
public sealed class CmsSigner
type CmsSigner = class
Public NotInheritable Class CmsSigner
Inheritance
CmsSigner

Constructors

CmsSigner()

Initializes a new instance of the CmsSigner class with default values.

CmsSigner(CspParameters)
Obsolete.

Initializes a new instance of the CmsSigner class from a persisted key.

CmsSigner(SubjectIdentifierType)

Initializes a new instance of the CmsSigner class with a specified subject identifier type.

CmsSigner(SubjectIdentifierType, X509Certificate2)

Initializes a new instance of the CmsSigner class with a specified signer certificate and subject identifier type.

CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)

Initializes a new instance of the CmsSigner class with a specified signer certificate, subject identifier type, and private key object.

CmsSigner(SubjectIdentifierType, X509Certificate2, RSA, RSASignaturePadding)

Initializes a new instance of the CmsSigner class with a specified signer certificate, subject identifier type, private key object, and RSA signature padding.

CmsSigner(X509Certificate2)

Initializes a new instance of the CmsSigner class with a specified signer certificate.

Properties

Certificate

The Certificate property sets or retrieves the X509Certificate2 object that represents the signing certificate.

Certificates

Gets a collection of certificates which are considered with WholeChain and ExcludeRoot.

DigestAlgorithm

Gets or sets the algorithm identifier for the hash algorithm to use with the signature.

IncludeOption

Gets or sets the option indicating how much of a the signer certificate's certificate chain should be embedded in the signed message.

PrivateKey

Gets or sets the private key object to use during signing.

SignaturePadding

Gets or sets the RSA signature padding to use.

SignedAttributes

Gets a collections of attributes to associate with this signature that are also protected by the signature.

SignerIdentifierType

Gets the scheme to use for identifying which signing certificate was used.

UnsignedAttributes

Gets a collections of attributes to associate with this signature that are not protected by the signature.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to