This project has moved. For the latest updates, please go here.

Security.Cryptography.Xml.TransformFactory

The TransformFactory class provides helper methods for programmatically creating transforms for use with the System.Security.Cryptography.Xml.SignedXml class. Since many of the transforms do not have constructors or other method that allow them to be created easily in code when creating an XML signature, they generally have to be constructed via XML. TransformFactory provides APIs that allow you to create these transforms without having to directly create the XML for the transform by hand.

APIs

static System.Security.Cryptography.Xml.XmlDsigXPathTransform CreateXPathTransform(System.String xpath)

Creates an XPath transform for the given XPath query. The transform created from this method does not bring any XML namespaces into scope, so the XPath query must not rely on any XML namespaces from the XML being signed.

Parameters:
xpath XPath query to embed into the transform


Exceptions:
System.ArgumentNullException if xpath is null



Last edited Jun 4, 2009 at 1:50 AM by shawnfa, version 2

Comments

No comments yet.