Wim Coenen
Wim Coenen

Reputation: 66733

Generating an XML signature in .NET with a XPath Filter 2.0 transform

I am trying to generate an XML signature in a .NET application. I also want to make use of a XPath Filter 2.0 transform in this signature.

The System.Security.Cryptography.Xml namespace provides classes which implement the XML signatures specification. However, it seems that .NET only supports XPath filtering as described in the xmldsig-core spec with the XmlDsigXPathTransform class. This is not the same as XPath Filter 2.0.

Should I study the XPath Filter 2.0 specification and attempt to implement my own Transform class? Or is there an easier way to proceed?

Upvotes: 2

Views: 1437

Answers (2)

torpederos
torpederos

Reputation: 841

Another option is to use Chilkatsoft library

I know it's quite expensive, but it does the job. I'm using it in my project.

Upvotes: 0

Wim Coenen
Wim Coenen

Reputation: 66733

In the end we used the .NET assemblies from the IKVM.net project, which contain an implementation of the Java class libraries.

This way we could easily use Java's javax.xml.crypto.dsig classes (which include support for XPath Filter 2.0 transforms) from .NET. It seems to work well.

Upvotes: 4

Related Questions