<clientCredentials> 的 <peer> 元素

指定在向对等客户端进行身份验证时使用的凭据。

架构层次结构

<system.serviceModel>
  <behaviors>
    <endpointBehaviors>
      <endpointBehaviors> 的 <behavior>
        <clientCredentials>
          <clientCredentials> 的 <peer> 元素

语法

<peer>
  <certificate/>
  <peerAuthentication/>
  <messageSenderAuthentication/>
</peer>

属性和元素

以下几节描述了特性、子元素和父元素。

属性

无。

子元素

元素 说明

<certificate> 元素

指定要用于为对等客户端的消息进行签名和加密的 X.509 证书。

<peerAuthentication> 元素

指定用于对等客户端的身份验证选项。

<messageSenderAuthentication> 元素

指定用于消息发送方的身份验证选项。

父元素

元素 说明

<clientCredentials>

指定用于向服务验证客户端身份的凭据。

备注

此配置元素指定对等节点用于向网格中的其他节点证明它自己的身份的凭据,以及对等节点用于验证其他对等节点的身份的身份验证设置。有关更多信息,请参见Peer Channel Message AuthenticationBest Practices for Securing PeerChannel Applications

另请参见

参考

ClientCredentialsElement
ClientCredentials
PeerCredentialElement
Peer
ClientCredentials
Peer
PeerCredential

其他资源

Peer to Peer Networking
Securing Clients
Peer Channel Message Authentication
Peer Channel Custom Authentication
Best Practices for Securing PeerChannel Applications
Securing Services and Clients