定義 netPeerTcpBinding> 的安全<設定,包括所使用的認證類型及訊息傳輸所使用的安全性。
<configuration>
<system.serviceModel>
<bindings>
<netPeerTcpBinding>
<binding>
<security>
語法
<netPeerBinding>
<binding>
<security mode="Message/None/Transport//TransportWithMessageCredential">
<transport credentialType="Certificate/Password" />
</security>
</binding>
</netPeerBinding>
屬性和項目
下列各節說明屬性、子元素和父元素
Attributes
| Attribute | Description |
|---|---|
| mode | 選擇性。 指定以此綁定配置的對等節點所採用的安全類型。 預設值是 Message。 此屬性的類型 SecurityMode為 。 |
模式屬性
| 價值觀 | Description |
|---|---|
| Message | SOAP 安全提供認證、完整性與機密性。 |
| None | 安全系統已關閉。 |
| Transport | 安全性透過 HTTPS 提供。 |
| 使用訊息憑證的傳輸方式 | HTTPS 提供認證與保密功能。 SOAP 訊息提供豐富的憑證類型。 |
子專案
| 元素 | Description |
|---|---|
| <交通> | 定義由配置此綁定的對端所發送的安全訊息傳輸類型。 此元素的類型 PeerTransportSecurityElement為 。 |
父項目
| 元素 | Description |
|---|---|
| <裝訂> | 定義 netPeerTcpBinding> 的所有綁定功能<。 |
備註
安全性可以是針對訊息或傳輸的。