SignedInfo.CanonicalizationMethod Property

 

Gets or sets the canonicalization algorithm that is used before signing for the current SignedInfo object.

Namespace:   System.Security.Cryptography.Xml
Assembly:  System.Security (in System.Security.dll)

public string CanonicalizationMethod { get; set; }

Property Value

Type: System.String

The canonicalization algorithm used before signing for the current SignedInfo object.

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

Use the CanonicalizationMethod property to specify the canonicalization algorithm applied to the XML output of the SignedInfo class before performing signature calculations.

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

Canonicalization Method

Value

Canonical XML

http://www.w3.org/TR/2001/REC-xml-c14n-20010315

This is default method. Also defined in the following static field: XmlDsigCanonicalizationUrl

Canonical XML with comments

http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments

Also defined in the following static field: XmlDsigCanonicalizationWithCommentsUrl

Exclusive Canonical XML

http://www.w3.org/2001/10/xml-exc-c14n#

Also defined in the following static field: XmlDsigExcC14NTransformUrl

Exclusive Canonical XML with comments

http://www.w3.org/2001/10/xml-exc-c14n#WithComments

Also defined in the following static field: XmlDsigExcC14NWithCommentsTransformUrl

For more information about XML digital signatures, see the World Wide Web Consortium (W3C) specification at www.w3.org/TR/xmldsig-core/.

.NET Framework
Available since 1.1
Return to top
Show: