javaxades4j

How can I create XAdES-T signature for binary content with xades4j?


I want to create detached XAdES-T signature for binary files. I've found in an other stack overflow post the xades4j tool. But I've found only examples for creating signature for xml documents. How can I sign binary file with xades4j?


Solution

  • You have different options to setup the signed data objects depending on you scenario. Check out the xades4j wiki on GitHub:

    Also, Apache XML Security (the foundation for xades4j) supports file: URIs, so you might also use this along with specifying the base URI.