SecureBlackbox 16: How do I modify 'Signature' element properties, e.g., <Id>?
Note: This article applies only to SecureBlackbox Legacy. For future development please consider using the latest version.
First, you need to set up all properties needed for the signature, then call the Sign() method. This method will prepare everything for signing and create the Signature structure. The actual signing is performed in the Save() method, because canonicalization results and digest values can depend on the signature element placement in the XML document.
Next, to change the Signature element ID set the ID property as shown (C# notation):
ElXMLSigner.Signature.ID = "id123";
We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at kb@nsoftware.com.