संपादित करें

इसके माध्यम से साझा किया गया


SignedInfo.SignatureMethod Property

Definition

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; }
public string SignatureMethod { get; set; }
member this.SignatureMethod : string with get, set
Public Property SignatureMethod As String

Property Value

The name of the algorithm used for signature generation and validation for the current SignedInfo object.

Remarks

The SignatureMethod property uses a string Uniform Resource Identifier (URI) to represents the <SignatureMethod> element of an XML digital signature.

Use the SignatureMethod property to specify the algorithm to use for signature generation and verification. This property identifies all cryptographic functions involved in creating an XML digital signature, including hashing, public key algorithms, Message Authentication Codes (MACs), and padding.

Use one of the URIs in the following table with this property.

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

Also defined in the following static field: XmlDsigHMACSHA1Url
DSA with SHA1 http://www.w3.org/2000/09/xmldsig#dsa-sha1

Also defined in the following static field: XmlDsigDSAUrl
RSA with SHA1 http://www.w3.org/2000/09/xmldsig#rsa-sha1

Also defined in the following static field: XmlDsigRSASHA1Url

For more information about XML digital signatures, see the World Wide Web Consortium (W3C) XML Signature Syntax and Processing Specification.

Applies to