EldoS
Navigation
Web site
Support
Table Of Contents

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

  • SignatureType. Note, that if you are signing the external data (XML document or generic data), you need to set SignatureType to xstDetached.
  • CanonicalizationMethod
  • SignatureMethodType
  • SignatureMethod. This property is set when SignatureMethodType is xmtSig
  • MACMethod. This property is set when SignatureMethodType is xmtMAC
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.

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation