CmsSigner 類別

定義

代表 CMS/PKCS # 7 已簽署訊息的可能簽署者。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
繼承
CmsSigner

建構函式

CmsSigner()

初始化具有預設值之 CmsSigner 類別的新執行個體。Initializes a new instance of the CmsSigner class with default values.

CmsSigner(CspParameters)

從保留金鑰初始化 CmsSigner 類別的新執行個體。Initializes a new instance of the CmsSigner class from a persisted key.

CmsSigner(SubjectIdentifierType)

使用指定的主體識別碼類型,初始化 CmsSigner 類別的新執行個體。Initializes a new instance of the CmsSigner class with a specified subject identifier type.

CmsSigner(SubjectIdentifierType, X509Certificate2)

使用指定的簽署者憑證和主體識別碼類型,初始化 CmsSigner 類別的新執行個體。Initializes a new instance of the CmsSigner class with a specified signer certificate and subject identifier type.

CmsSigner(SubjectIdentifierType, X509Certificate2, AsymmetricAlgorithm)

使用指定的簽署者憑證、主體識別碼類型和私密金鑰物件,初始化 CmsSigner 類別的新執行個體。Initializes a new instance of the CmsSigner class with a specified signer certificate, subject identifier type, and private key object.

CmsSigner(X509Certificate2)

使用指定的簽署者憑證,初始化 CmsSigner 類別的新執行個體。Initializes a new instance of the CmsSigner class with a specified signer certificate.

屬性

Certificate

Certificate 屬性會設定或擷取表示簽章憑證的 X509Certificate2 物件。The Certificate property sets or retrieves the X509Certificate2 object that represents the signing certificate.

Certificates

取得被視為 WholeChainExcludeRoot 之憑證的集合。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.

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.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於