共用方式為


<netPeerBinding> 的 <security>

定義 <netPeerTcpBinding> 的安全性設定,包括使用的驗證類型與訊息傳輸所用的安全性。

<configuration>
  <system.serviceModel>
    <bindings>
      <netPeerTcpBinding>
        <binding>
          <security>

Syntax

<netPeerBinding>
  <binding>
    <security mode="Message/None/Transport//TransportWithMessageCredential">
      <transport credentialType="Certificate/Password" />
    </security>
  </binding>
</netPeerBinding>

屬性和項目

下列各節說明屬性、子元素和父元素

屬性

屬性 描述
mode 選擇性。 指定此繫結所設定之對等要使用的安全性類型。 預設值是 Message。 此屬性的型別為 SecurityMode

mode 屬性

描述
訊息 SOAP 安全性提供驗證、完整性和機密性。
停用安全性。
傳輸 系統會使用 HTTPS 來提供安全性。
TransportWithMessageCredential HTTPS 提供驗證和機密性。 SOAP 訊息提供豐富的認證類型。

子元素

元素 描述
<transport> 定義使用這個繫結設定之對等所傳送安全訊息的傳輸類型。 此項目的型別為 PeerTransportSecurityElement

父項目

元素 描述
<binding> 定義 <netPeerTcpBinding> 的所有繫結功能。

備註

安全性可以是訊息特定或傳輸特定。

另請參閱