I received an example xades signature that I have to reproduce using xades4j ("like a template").
The example signature is this (an excerpt):
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="xmldsig-qualifyingproperties-yada-yada">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
<ds:Reference URI="#xmldsig-signedproperties-yada-yada">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>yada-yada-yada-yada-yada-yada-yada</ds:DigestValue>
</ds:Reference>
(...)
I know that this reference is not xades compliant, because there is no attribute Type there.
My issue is with the Transform in that Reference. I'm not able to find how can I set this option with xades4j. Can this be done?
Also, I don't know if that is here make sense, because at the signature top, it says that the canonicalization method is one then in the signedproperties reference it says the canonicalization method is another one... Am I reading this correctly?