Question

Having a XAdES-BES signature with the signed content embedded inside, is it possible to detach the signed content, so that one will have the XAdES with ObjectReference instead.

So to put it simple - I need a method that takes a XAdES with embedded file, and returns the file and XAdES referencing the file (so that the file is no longer embedded in the XAdES).

I was trying to figure out a way using XAdES4j with no result.

Thanks in advance for answering!

Was it helpful?

Solution

You can easily extract the signed file from XAdES signature, but you cannot convert a enveloping signature to detached one.

Signed content is referenced in SignedInfo by reference uri, and since SignedInfo element is "signed", you cannot change that reference without breaking the signature value.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top