SignedInfo.SignatureMethod 屬性

定義

取得或設定目前 SignedInfo 物件用於產生和驗證簽章的演算法名稱。

public:
 property System::String ^ SignatureMethod { System::String ^ get(); void set(System::String ^ value); };
public string SignatureMethod { get; set; }
public string? SignatureMethod { get; set; }
member this.SignatureMethod : string with get, set
Public Property SignatureMethod As String

屬性值

目前 SignedInfo 物件用於產生和驗證簽章的演算法名稱。

備註

屬性 SignatureMethod 會使用字串統一資源識別元 (URI) 來表示 <SignatureMethod> XML 數位簽章的 元素。

SignatureMethod使用 屬性來指定用於簽章產生和驗證的演算法。 此屬性會識別建立 XML 數位簽章所涉及的所有密碼編譯函式,包括雜湊、公開金鑰演算法、訊息驗證碼 (MAC) 和填補。

使用下表中的其中一個 URI 搭配這個屬性。

Signature 方法
HMAC-SHA1 http://www.w3.org/2000/09/xmldsig#hmac-sha1

也定義于下列靜態欄位中: XmlDsigHMACSHA1Url
DSA 搭配 SHA1 http://www.w3.org/2000/09/xmldsig#dsa-sha1

也定義于下列靜態欄位中: XmlDsigDSAUrl
RSA 搭配 SHA1 http://www.w3.org/2000/09/xmldsig#rsa-sha1

也定義于下列靜態欄位中: XmlDsigRSASHA1Url

如需 XML 數位簽章的詳細資訊,請參閱 World Wide Web Consortium (W3C) XML 簽章語法和處理規格

適用於