【问题标题】:Generating an XML signature in .NET with a XPath Filter 2.0 transform使用 XPath Filter 2.0 转换在 .NET 中生成 XML 签名
【发布时间】:2011-08-18 11:52:34
【问题描述】:

我正在尝试在 .NET 应用程序中生成 XML signature。我还想在此签名中使用XPath Filter 2.0 转换。

System.Security.Cryptography.Xml 命名空间提供了实现 XML 签名规范的类。但是,.NET 似乎只支持 XPath filtering as described in the xmldsig-core specXmlDsigXPathTransform 类。这与 XPath Filter 2.0 不同。

我是否应该研究 XPath Filter 2.0 规范并尝试实现我自己的 Transform 类?还是有更简单的方法?

【问题讨论】:

    标签: .net xml-signature


    【解决方案1】:

    最后,我们使用了来自 IKVM.net 项目的 .NET 程序集,其中包含 Java 类库的实现。

    通过这种方式,我们可以轻松地从 .NET 使用 Java 的 javax.xml.crypto.dsig 类(包括对 XPath Filter 2.0 转换的支持)。它似乎运作良好。

    【讨论】:

    • 嗨,我现在遇到了同样的问题。看起来 .Net 框架仍然不支持过滤器转换。除了 IKVM.net,还有其他选择吗?
    【解决方案2】:

    另一种选择是使用Chilkatsoft library

    我知道它很贵,但它确实有效。我在我的项目中使用它。

    【讨论】:

      猜你喜欢
      • 2023-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-30
      • 1970-01-01
      • 1970-01-01
      • 2018-08-14
      • 2013-09-22
      相关资源
      最近更新 更多