SignerInfo 類別

定義

SignerInfo 類別,表示與 SignedCms 物件 (表示 CMS/PKCS #7 訊息) 關聯的簽署人。

public ref class SignerInfo sealed
public sealed class SignerInfo
type SignerInfo = class
Public NotInheritable Class SignerInfo
繼承
SignerInfo

備註

類別所代表的 SignerInfo 簽章可以透過訊息內容或簽章。 後者的簽章稱為 反簽署

此 CMS/PKCS #7 實作僅支援一層的計數器簽署。 也就是說,簽章可以簽署,這形成計數器簽署,但無法再次簽署該反簽署。

這個類別沒有公用建構函式;因此,它無法公開具現化。 它是可從 屬性存取 SignedCms.SignerInfos 的唯讀類別。

屬性

Certificate

Certificate 屬性 (Property) 擷取與簽署人資訊關聯的簽章憑證。

CounterSignerInfos

CounterSignerInfos 屬性 (Property) 擷取與簽署人資訊關聯的副簽署人組。

DigestAlgorithm

DigestAlgorithm 屬性 (Property),擷取表示用來計算簽章之雜湊演算法的 Oid 物件。

SignatureAlgorithm

取得目前 SignerInfo 物件使用的簽章演算法識別碼。

SignedAttributes

SignedAttributes 屬性 (Property) 會擷取與簽署人資訊關聯之已簽署屬性 (Attribute) 的 CryptographicAttributeObjectCollection 集合。 已簽署的屬性 (Attribute) 是和其餘的訊息內容一起簽署。

SignerIdentifier

SignerIdentifier 屬性 (Property),擷取與簽署人資訊關聯的簽署人憑證識別項。

UnsignedAttributes

UnsignedAttributes 屬性 (Property),擷取與 CryptographicAttributeObjectCollection 內容關聯的未簽署屬性 (Attribute) 的 SignerInfo 集合。 可在不使簽章失效的情況下修改未簽署的屬性。

Version

Version 屬性 (Property) 擷取簽署人資訊版本。

方法

AddUnsignedAttribute(AsnEncodedData)

將指定的屬性加入至目前的文件。

CheckHash()

CheckHash() 方法會驗證 CMS/PKCS #7 訊息簽署人資訊的資料完整性。 CheckHash() 是特定安全性基礎結構應用程式中會使用的特定方法,在這種應用程式中,主體會在設定 CmsSigner 物件時使用 SubjectIdentifierType 列舉的 HashOnly 成員。 CheckHash() 不會驗證簽署人資訊,因為這個方法並不涉及確認數位簽章。 如需為一般目的而檢查 CMS/PKCS #7 訊息簽署人資訊和副署的完整性和驗證性 (Authenticity),請使用 CheckSignature(Boolean)CheckSignature(X509Certificate2Collection, Boolean) 方法。

CheckSignature(Boolean)

CheckSignature(Boolean) 方法會驗證 (Verify) 訊息的數位簽章,也可以選擇性地驗證 (Validate) 憑證。

CheckSignature(X509Certificate2Collection, Boolean)

CheckSignature(X509Certificate2Collection, Boolean) 方法使用指定的憑證集合來驗證 (Verify) 訊息的數位簽章,也可以選擇性地驗證 (Validate) 憑證。

ComputeCounterSignature()
已淘汰.

ComputeCounterSignature() 方法,提示使用者選取簽章憑證、建立副署,以及將簽章加入至 CMS/PKCS #7 訊息。 限制副屬為一個層級。

ComputeCounterSignature(CmsSigner)

ComputeCounterSignature(CmsSigner) 方法使用指定的簽署人建立副署,並將簽章加入至 CMS/PKCS #7 訊息。 限制副屬為一個層級。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetSignature()

擷取目前 SignerInfo 物件的簽章。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
RemoveCounterSignature(Int32)

RemoveCounterSignature(Int32) 方法移除 CounterSignerInfos 集合之指定索引的副署。

RemoveCounterSignature(SignerInfo)

RemoveCounterSignature(SignerInfo) 方法移除指定之 SignerInfo 物件的副署。

RemoveUnsignedAttribute(AsnEncodedData)

從目前的文件中移除指定的屬性。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於