Signature Class

 

Represents the <Signature> element of an XML signature.

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

System.Object
  System.Security.Cryptography.Xml.Signature

[<HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)>]
type Signature = class end

NameDescription
System_CAPS_pubmethodSignature()

Initializes a new instance of the Signature class.

NameDescription
System_CAPS_pubpropertyId

Gets or sets the ID of the current Signature.

System_CAPS_pubpropertyKeyInfo

Gets or sets the KeyInfo of the current Signature.

System_CAPS_pubpropertyObjectList

Gets or sets a list of objects to be signed.

System_CAPS_pubpropertySignatureValue

Gets or sets the value of the digital signature.

System_CAPS_pubpropertySignedInfo

Gets or sets the SignedInfo of the current Signature.

NameDescription
System_CAPS_pubmethodAddObject(DataObject)

Adds a DataObject to the list of objects to be signed.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetXml()

Returns the XML representation of the Signature.

System_CAPS_pubmethodLoadXml(XmlElement)

Loads a Signature state from an XML element.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The Signature class represents the <Signature> element of an XML signature defined by the XML digital signature specification. The <Signature> element is the root element of an XML digital signature. The SignedInfo, SignatureValue, KeyInfo, and ObjectList properties encapsulate the subelements of the <Signature> element.

For more information about the <Signature> element, see the W3C specification at www.w3.org/TR/xmldsig-core/.

The following code example uses the Signature class with the SignedXml class to sign and verify an XML document using an envelope signature.

No code example is currently available or this language may not be supported.

The following code example uses the Signature class with the SignedXml class to sign an object and verify an XML document using a detached signature.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: