質問

In xades4j, in case of multiple enveloping signature i will have my signed document with, at the end, more Signature elements, but i need to tell to each reference to signed document (URI="") that he must not refers to other Signature element that represent other Signature, i need so to add this transformation

<ds:Reference URI="">
    <ds:Transforms>
        <ds:Transform Algorithm="http://www.w3.org/2002/06/xmldsig-filter2">
            <dsig-xpath:XPath Filter="subtract">/descendant::ds:Signature</dsig-xpath:XPath>   
        </ds:Transform>
    </ds:Transforms> 
....

Telling that it must not to consider ds:Signature element for signature production. How xades4j permit the use of this kind of transformation?

Thanks

Michele

役に立ちましたか?

解決

You can add the transforms when defining the DataObjectReference. Check the examples on the wiki page and the XPath2FilterTransform class documentation.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top