JSR-105 签名输出参考
我正在研究 W3C Widgets 规范。我对 JSR-105 功能有疑问。
谁能告诉我如何引用 XMLObject?
<?xml version="1.0" encoding="UTF-8"?>
<Signature>
<SignedInfo>
<Reference URI="#prop"/> <!-- How can I refer the Object? Isn't it the actual output? -->
</SignedInfo>
<Object Id="prop"/>
</Signature>
我认为我可以使用 XMLSignatureFactory
中的那些 newXXX
方法来制作 XML 部分。但我无法找出为此创建 Reference
对象的方法。因为我找不到为 XMLObject
实例创建 NodeSetData
的方法。
我当前的解决方案是...
- 创建一个包含
Object
元素及其子元素的org.w3c.dom.Document
。 - 并让
URIDereferencer
返回该元素的NodeSetData
。
这是最好的方法吗?有什么首选方式吗?
I'm working on the W3C Widgets Spec. I have a question with JSR-105 features.
Can anybody please tell me how to refer the XMLObject?
<?xml version="1.0" encoding="UTF-8"?>
<Signature>
<SignedInfo>
<Reference URI="#prop"/> <!-- How can I refer the Object? Isn't it the actual output? -->
</SignedInfo>
<Object Id="prop"/>
</Signature>
I thought that I can make the XML part with those newXXX
methods in the XMLSignatureFactory
. But I couldn't figure out the way to make the Reference
object for this. Because I couldn't find the way to make a NodeSetData
for the XMLObject
instance.
My current solution is...
- Make an
org.w3c.dom.Document
containing theObject
element and it's children. - And make a
URIDereferencer
returns aNodeSetData
for the element.
Is this the best way? Is there any preferred way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论