Java XML DSig and XPath

前端 未结 1 964
耶瑟儿~
耶瑟儿~ 2020-12-30 17:04

I\'m signing part of an XML document using the Java XML DSig api. I\'m trying to understand how it is arriving at the Digest value.

My document is:

         


        
相关标签:
1条回答
  • 2020-12-30 17:14

    Following an example at: http://markmail.org/message/tdgioazns7l4yg6d#query:java%20xpath%20xml%20dsig%20bug+page:1+mid:tgw5kr7uscwkcran+state:results, I found that I needed to change the XPathType.Filter.UNION to XPathType.FILTER.INTERSECT. That seems to have solved my problem. The XML DSig library is now using the correct value that I expected.

    0 讨论(0)
提交回复
热议问题