Search code examples
xades4j

SignatureValue without Id attribute


When I sign an XML document I get:

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="xmldsig-f62dafae-6983-4b97-9b52-3f24c6960c43">
    ....
    <ds:SignatureValue Id="xmldsig-f62dafae-6983-4b97-9b52-3f24c6960c43-sigvalue">
         VpJzFiW62NK2ytlUkAYF....
    </ds:SignatureValue>
    ....
</ds:Signature>

Is it possible to get ds:SignatureValue without the Id attribute?


Solution

  • It isn't possible to control the presence/value of that (and other) IDs, since it's hard-coded on the signer class. These IDs may be needed by some qualifying properties, hence being added.