Initial XPath Filter 2.0

Does anyone know of an open source implementation for XPath Filter 2.0 , preferably in Java? But any other language will also be fine. The standard is not so new, so something must exist, but I can not find anything ...

If in reality there is nothing adequate, has anyone ever implemented it and could tell me how difficult it is to do this with standard tools (DOM model plus XPath)? Only a rough estimate, will it be a matter of days or, rather, weeks for 2 people working on it full time?

+6
source share
2 answers

Have you looked at the Apache Santuario library

It comes with a class that implements XML Signature XPath Filter v2.0:

TransformXPath2Filter

Further implementations are listed below (although I have not tested any of them):

XPath Filter2 Interop Report XML Signature

+1
source

Thanks 0xA3. The compatibility report lists the following two open source libraries that support XPath Filter 2:

In our own analysis, we found that the JDK-internal implementation of XML Digital Signatures also supports this function, although implicitly, the implementation is not a public API and is hidden from the user. Like the entire XML / DSIG implementation in Sun / Oracle JDK, it uses the Apache Santuario implementation version internally.

Finally, we decided on Jaxen because it was easier to integrate than Santuario.

+1
source

Source: https://habr.com/ru/post/892608/


All Articles