Adds a new object to the list of objects stored in the <ds:Signature> node.
The newly added object.
To sign the object, you have to add reference to it. The following types of source data are supported.
| Encoding | MimeType | Description |
|---|---|---|
| base64 | (any value) | The data is base64 encoded. The following types of data are
supported: a byte array, a Data
object or a custom object that implements the IStream
interface. |
| (not specified) | text/xml or any other XML mime type | The data should be an XML document or node. The following types
of data are supported: a Data
object, an IXmlDomElement, a string,
a byte array or a custom object that implements the IStream
interface. |
| (not specified) | text/plain | The type of data should be a string. |
| (not specified) | (not specified) | See the table below. |
When MimeType and Encoding are not specified, data is handled as shown in the next table.
| Source data type | Description |
|---|---|
| A string | The data is handled as a plain text. |
| An XML element | The data is handled as an XML (IXMLDomElement). |
| A byte array | The data is handled as a stream of bytes. It is base64 encoded before it is added to the XML. |
| A Data object | The data is handled as a Data object. |
A custom object that implements the IStream
interface | The data is handled as a custom object. |
Some of the objects that implement the
IStream interface: ASP Request
object, ASP Response object, ADO stream.
Requires CreaSign Pro (not supported by CreaSign Lite).
Objects Class | CreaSign Namespace | XmlSignature.AddObject
(c) CREA 2002-2007 www.creasign.si