CreaSign

XmlSignature.AddObject Method 

Adds a new object to the list of objects stored into the <ds:Signature> node.

[Visual Basic]
Public Sub AddObject( _
   ByVal Id As String, _
   ByVal Data As Object _
)

Parameters

Id
An identifier, which is used to identify the <ds:Object> node. This allows the node to be referenced from another location.
Data
Optional. The data that should be inserted into the object node.

Remarks

To sign the object, you have to add reference to it. The following types of source data are supported.
Source data typeDescription
A string The specified text is added to the object.
An XML elementThe specified element (IXMLDomElement) is added to the object.
A byte arrayThe data in byte array is base64 encoded and added to the object.
A Data objectThe data stored in the Data objects is base64 encoded and added to the object.
A custom object that implements the IStream interfaceThe data stored in the custom object is base64 encoded and added to the object. Some of the objects that implement the IStream  interface:  ASP Request object, ASP Response object, ADO stream. 

Requirements

Requires CreaSign Pro (not supported by CreaSign Lite).

See Also

XmlSignature Class | CreaSign Namespace | Objects.Add


Send comments on this topic.

(c) CREA 2002-2007 www.creasign.si