Discuss this help topic in SecureBlackbox Forum

XML: Change ID attribute and other attributes of signature elements

To change the Id attribute of a signature element, or change other attributes, which are not related to digest, signature or canonicalization algorithms, you can access TElXMLSigner.Signature structure, and modify the data directly. The Signature property is populated with calls to TElXMLSigner.GenerateSignature() or GenerateSignatureAsync() methods, and has the structure, similar to XML signatures.

C#:


Signer.GenerateSignature();
...
Signer.Signature.ID = "Signature-id";
Signer.Signature.SignatureValue.ID = "SignatureValue-id";
Signer.Signature.KeyInfo.ID = "KeyInfo-id";
Delphi:

Signer.GenerateSignature();
...
Signer.Signature.ID := 'Signature-id';
Signer.Signature.SignatureValue.ID := 'SignatureValue-id';
Signer.Signature.KeyInfo.ID := 'KeyInfo-id';

How To articles about XML signing (XMLDSig and XAdES)

Discuss this help topic in SecureBlackbox Forum