第五十五章 安全元素的详细信息 - ReferenceList 详情

文章目录

  • [第五十五章 安全元素的详细信息 - <ReferenceList> 详情](#第五十五章 安全元素的详细信息 - <ReferenceList> 详情)
  • 详情
  • 消息中的位置

第五十五章 安全元素的详细信息 - 详情

本节讨论在消息头中用作 <Security>子元素的 <ReferenceList> 元素。当以这种方式使用 <ReferenceList> 时,可以在签名之前执行加密。以下显示了此元素的一个示例:

xml 复制代码
<ReferenceList xmlns="http://www.w3.org/2001/04/xmlenc#">
   <DataReference URI="#Enc-358FB189-81B3-465D-AFEC-BC28A92B179C"></DataReference>
   <DataReference URI="#Enc-9EF5CCE4-CF43-407F-921D-931B5159672D"></DataReference>
</ReferenceList>

详情

在每个 <DataReference> 元素中,URI 属性指向消息中其他位置的 <EncryptedData> 元素的 Id 属性。

使用顶级 <ReferenceList> 元素时,<EncryptedKey> and <EncryptedData> 的详细信息有所不同,如下所示:

Scenario
contains pointer to Includes (same for all associated elements) Does not include
Top-level element contains pointer to Does not include Includes (potentially different for each element.

消息中的位置

在 <Security> 中,应在关联的 <EncryptedKey> 之后包含一个 <ReferenceList> 元素。

相关推荐
leoufung几秒前
图解除法查询问题:用 C 语言和 DFS 实现带权有向图的路径乘积
c语言·开发语言·深度优先
poggioxay3 分钟前
JAVA零基础入门知识3(持续更新中)
java·开发语言·python
鹤归时起雾.7 分钟前
Vue3响应式编程核心指南
开发语言·vue3
清晓粼溪15 分钟前
SpringMVC-01:基础知识
java·spring
小飞侠在吗16 分钟前
vue ref
前端·javascript·vue.js
悟能不能悟17 分钟前
在 Vue Router 4 中,如何设置base参数
前端·javascript·vue.js
郝学胜-神的一滴26 分钟前
Linux信号四要素详解:从理论到实践
linux·服务器·开发语言·网络·c++·程序人生
yangpipi-26 分钟前
《C++并发编程实战》 第3章 在线程间共享数据
开发语言·c++
fish_xk27 分钟前
c++基础
开发语言·c++
MoonBit月兔28 分钟前
审美积累 | MoonBit LOGO 投稿作品速递
开发语言·编程·moonbit