CmsSigner CmsSigner CmsSigner CmsSigner Class

Definition

The CmsSigner class provides signing functionality.

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

Constructors

CmsSigner() CmsSigner() CmsSigner() CmsSigner()

The CmsSigner() constructor creates an instance of the CmsSigner class by using a default subject identifier type.

CmsSigner(CspParameters) CmsSigner(CspParameters) CmsSigner(CspParameters) CmsSigner(CspParameters)

The CmsSigner(CspParameters) constructor creates an instance of the CmsSigner class with the specified cryptographic service provider (CSP) parameters. CmsSigner(CspParameters) is useful when you know the specific CSP and private key to use for signing.

CmsSigner(SubjectIdentifierType) CmsSigner(SubjectIdentifierType) CmsSigner(SubjectIdentifierType) CmsSigner(SubjectIdentifierType)

The CmsSigner(SubjectIdentifierType) constructor creates an instance of the CmsSigner class with the specified subject identifier type.

CmsSigner(SubjectIdentifierType, X509Certificate2) CmsSigner(SubjectIdentifierType, X509Certificate2) CmsSigner(SubjectIdentifierType, X509Certificate2) CmsSigner(SubjectIdentifierType, X509Certificate2)

The CmsSigner(SubjectIdentifierType, X509Certificate2) constructor creates an instance of the CmsSigner class with the specified signer identifier type and signing certificate.

CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm) CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm) CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm) CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)
CmsSigner(X509Certificate2) CmsSigner(X509Certificate2) CmsSigner(X509Certificate2) CmsSigner(X509Certificate2)

The CmsSigner(X509Certificate2) constructor creates an instance of the CmsSigner class with the specified signing certificate.

Properties

Certificate Certificate Certificate Certificate

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

Certificates Certificates Certificates Certificates

The Certificates property retrieves the X509Certificate2Collection collection that contains certificates associated with the message to be signed.

DigestAlgorithm DigestAlgorithm DigestAlgorithm DigestAlgorithm

The DigestAlgorithm property sets or retrieves the Oid that represents the hash algorithm used with the signature.

IncludeOption IncludeOption IncludeOption IncludeOption

The IncludeOption property sets or retrieves the option that controls whether the root and entire chain associated with the signing certificate are included with the created CMS/PKCS #7 message.

PrivateKey PrivateKey PrivateKey PrivateKey
SignedAttributes SignedAttributes SignedAttributes SignedAttributes

The SignedAttributes property retrieves the CryptographicAttributeObjectCollection collection of signed attributes to be associated with the resulting SignerInfo content. Signed attributes are signed along with the specified content.

SignerIdentifierType SignerIdentifierType SignerIdentifierType SignerIdentifierType

The SignerIdentifierType property sets or retrieves the type of the identifier of the signer.

UnsignedAttributes UnsignedAttributes UnsignedAttributes UnsignedAttributes

The UnsignedAttributes property retrieves the CryptographicAttributeObjectCollection collection of unsigned PKCS #9 attributes to be associated with the resulting SignerInfo content. Unsigned attributes can be modified without invalidating the signature.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to