第五十五章 安全元素的详细信息 - 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> 元素。

相关推荐
LIO15 分钟前
深度解析 localStorage 与 sessionStorage:用法、区别与最佳实践
前端
Amy_yang24 分钟前
uni-app 中 web-view 的使用与 App 端全屏问题处理
前端·javascript·vue.js
闲坐含香咀翠24 分钟前
Electron 加载原生模块总崩溃?搞懂这两行配置就够了
前端·electron·客户端
海盗123430 分钟前
C#在Distinct()中使用IEqualityComparer<T>
开发语言·c#
Vertira36 分钟前
python 配置PostgreSQL 数据库
开发语言·python
该昵称用户已存在39 分钟前
从成本中心到价值引擎:MyEMS 开源系统激活企业能源数据资产
java·后端·struts
隐退山林40 分钟前
JavaEE进阶:SpringBoot配置文件
java·spring boot·java-ee
拉拉肥_King1 小时前
pc端视频压缩:FFmpeg.wasm 实战指南
前端
阿维的博客日记1 小时前
求解深分页问题,last pk适合什么情况
java·mysql·深分页
0x861 小时前
基于 Dio 实现 SSE 流式通信
前端