Discuss this help topic in SecureBlackbox Forum

XML: Setup signing parameters

Before signing something, you need to setup the parameters.

First you need to create and populate the list of references which point to the data being signed:

  1. Create an instance of TElXMLReferenceList class.
  2. Create one or more instances of TElXMLReference class and add the created instances to the list.
  3. Setup each reference. See other how-to articles regarding how to set the references to sign the document, node(s) or external data.
  4. If needed, setup transforms for the reference, as described in other how-to articles.
Assign the reference list to References property of TElXMLSigner object.

Next, setup various signature-related properties of TElXMLSigner class, such as

See documentation for detailed description of these properties.

Set KeyData property of TElXMLSigner class. See other how-to articles regarding how to use various types of keys for signing.

Then call UpdateReferencesDigest() method of TElXMLSigner class to calculate the digest which will be signed.

Finally call Sign() method of TElXMLSigner class to perform actual signing.

How To articles about XML signing (XMLDSig and XAdES)

Discuss this help topic in SecureBlackbox Forum