共用方式為


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 之一,搭配此屬性。

簽名方法 價值
HMAC SHA-1 http://www.w3.org/2000/09/xmldsig#hmac-sha1

以下靜態場亦定義: XmlDsigHMACSHA1Url
與 SHA-1 的 DSA http://www.w3.org/2000/09/xmldsig#dsa-sha1

以下靜態場亦定義: XmlDsigDSAUrl
RSA 與 SHA-1 http://www.w3.org/2000/09/xmldsig#rsa-sha1

以下靜態場亦定義: XmlDsigRSASHA1Url

欲了解更多關於 XML 數位簽章的資訊,請參閱萬維網聯盟(W3C) XML 簽章語法與處理規範

適用於