<netPeerBinding> 的 <security>
定义 <netPeerTcpBinding> 的安全设置,包括使用的身份验证类型和用于消息传输的安全性。
架构层次结构
<system.serviceModel>
<bindings>
<netPeerTcpBinding>
<binding>
<netPeerBinding> 的 <security>
语法
<netPeerBinding>
<binding>
<security mode="Message/None/Transport//TransportWithMessageCredential">
<transport credentialType="Certificate/Password" />
</security>
</binding>
</netPeerBinding>
属性和元素
以下几节描述了特性、子元素和父元素
属性
特性 | 说明 |
---|---|
mode |
可选项。指定采用此绑定配置的对等端所使用的安全类型。默认值为 Message。此属性的类型为 SecurityMode。 |
子元素
元素 | 说明 |
---|---|
定义采用此绑定配置的对等端所发送的安全消息的传输类型。此元素的类型为 PeerTransportSecurityElement。 |
父元素
元素 | 说明 |
---|---|
定义 <netPeerTcpBinding> 的所有绑定功能。 |
备注
安全性可以是特定于消息的,也可以是特定于传输的。
另请参见
参考
PeerSecurityElement
Security
Security
PeerSecuritySettings
概念
其他资源
Securing Services and Clients
Selecting a Credential Type
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients