SignedInfo.SignatureMethod 属性

定义

获取或设置用于当前 SignedInfo 对象的签名生成和验证的算法名称。Gets or sets the name of the algorithm used for signature generation and validation for the current SignedInfo object.

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

属性值

String

算法名称,用于当前 SignedInfo 对象的签名生成和验证。The name of the algorithm used for signature generation and validation for the current SignedInfo object.

注解

SignatureMethod属性使用字符串统一资源标识符 (URI) 来表示 <SignatureMethod> XML 数字签名的元素。The SignatureMethod property uses a string Uniform Resource Identifier (URI) to represents the <SignatureMethod> element of an XML digital signature.

使用 SignatureMethod 属性指定要用于生成和验证签名的算法。Use the SignatureMethod property to specify the algorithm to use for signature generation and verification. 此属性标识创建 XML 数字签名所涉及的所有加密函数,包括哈希、公钥算法、消息身份验证代码 (Mac) 和填充。This property identifies all cryptographic functions involved in creating an XML digital signature, including hashing, public key algorithms, Message Authentication Codes (MACs), and padding.

使用下表中的其中一个 Uri 和此属性。Use one of the URIs in the following table with this property.

签名方法Signature Method ValueValue
HMAC-SHA1HMAC-SHA1 http://www.w3.org/2000/09/xmldsig#hmac-sha1

还在下面的静态字段中定义: XmlDsigHMACSHA1UrlAlso defined in the following static field: XmlDsigHMACSHA1Url
带有 SHA1 的 DSADSA with SHA1 http://www.w3.org/2000/09/xmldsig#dsa-sha1

还在下面的静态字段中定义: XmlDsigDSAUrlAlso defined in the following static field: XmlDsigDSAUrl
具有 SHA1 的 RSARSA with SHA1 http://www.w3.org/2000/09/xmldsig#rsa-sha1

还在下面的静态字段中定义: XmlDsigRSASHA1UrlAlso defined in the following static field: XmlDsigRSASHA1Url

有关 XML 数字签名的详细信息,请参阅万维网联合会 (W3C) XML 签名语法和处理规范For more information about XML digital signatures, see the World Wide Web Consortium (W3C) XML Signature Syntax and Processing Specification.

适用于