ZBLOG

8.2.3.2. Domains Section This section is delimited by the XML element . The value in this element identifies the collection of DDS Domains to which the rule applies. The syntax is the same as for the Domains of the Domain Governance Docu...

8.2.3.2. Domains Section

Domains Section是Domain Governance Document和DomainParticipant Permissions Document中的一个重要部分,由XML元素<domains>界定。这个部分用于标识与权限规则相关的DDS域的集合,其语法与Domain Governance Document中的域相同。

8.2.3.3. Format of the Allowed/Denied Actions sections

这一部分定义了允许或拒绝操作的格式,主要包括以下三种动作,每种动作都使用不同的XML元素标签进行区分:

  • Allow/Deny Publish: 使用<publish>元素。
  • Allow/Deny Subscribe: 使用<subscribe>元素。
  • Allow/Deny Relay: 使用<relay>元素。

每个操作包含两个条件:

  1. Allowed/Denied Topics Condition
  2. Allowed/Denied Partitions Condition

8.2.3.3.1. Topics Condition

这个部分由<topics> XML元素界定。它定义了在允许或拒绝规则适用时必须匹配的主题名称。主题名称可以明确给出,也可以通过主题名称表达式指定。每个明确的主题名称或主题名称表达式都作为子元素<topic>放在<topics>元素内。

主题名称表达式语法和匹配应使用POSIX fnmatch()函数所规定的语法和规则。例如:

<topics>
    <topic>Plane</topic>
    <topic>Hel*</topic>
</topics>

8.2.3.3.2. Partitions Condition

这一部分由<partitions> XML元素界定。它限制了与(发布、订阅、转发)操作相关联的分区名称集,以使规则得以应用。分区名称表达式语法和匹配也应遵循POSIX fnmatch()函数所规定的规则。如果某条规则中没有<partitions>部分,则默认假设为空字符串分区。例如:

<partitions>
    <partition>A</partition>
    <partition>B*</partition>
</partitions>

8.2.4 Signing documents using x509 certificate

文档签名: Domain Governance Document 和 DomainParticipant Permissions Document 必须使用X.509证书进行签名。生成X.509证书的过程可参见相关文档。在DDS:Access:Permissions插件下使用必要命令对这些文档进行签名,例如:

对于治理文档:governance.xml

openssl smime -sign -in governance.xml -text -out governance.smime -signer maincacert.pem -inkey maincakey.pem

对于权限文档:permissions.xml

openssl smime -sign -in permissions.xml -text -out permissions.smime -signer maincacert.pem -inkey maincakey.pem

这些命令将为治理文档和权限文档创建签名文件,这些文件将在后续中用于确保数据传输过程中的安全性及完整性。


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=21514

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?