<netTcpBinding> 的 <message> 項目

定義以 <<netTcpBinding>>設定之端點的訊息層級安全性需求類型。

<<system.serviceModel>>
  <binding>
    <<netTcpBinding>>
      <binding>
        <netTcpBinding> 的 <security>
          <netTcpBinding> 的 <message> 項目

<message 
      algorithmSuite=System.Servicemodel.Security.SecurityAlgorithmsuite
    clientCredentialType="None/Windows/UserName/Certificate/IssuedToken"/>

屬性和項目

屬性

屬性 描述

algorithmSuite

設定訊息加密和金鑰包裝演算法。這些演算法和金鑰大小是由 SecurityAlgorithmSuite 類別所決定。這些演算法會對應至安全性原則語言 (WS-SecurityPolicy) 規格中指定的演算法。

下表列出可能的值。預設值為 Basic256

如果服務繫結指定的 algorithmSuite 值不等於預設值,且您是使用 Svcutil.exe 產生組態檔,則該檔案將無法正確產生,這時您就必須手動編輯組態檔,將此屬性設定為需要的值。

clientCredentialType

指定當使用訊息安全性執行用戶端驗證時,要使用的認證類型。下表列出可能的值。預設值為 UserName。此屬性的型別為 MessageCredentialType

子項目

父項目

項目 描述

<netTcpBinding> 的 <security>

定義 NetTcpBindingElement 的安全性功能。

備註

訊息會使用訊息層級安全性達成 SOAP 訊息的完整性與機密性,以及通訊對等兩端的交互驗證。如果繫結上選取了這個安全性模式,通道堆疊會以訊息安全性繫結項目進行設定,且 SOAP 訊息的安全性會符合 WS-Security* 標準。

請參閱

參考

MessageSecurityOverTcp
Message
Message
NetTcpSecurityElement

概念

<binding>

其他資源

Securing Services and Clients
Windows Communication Foundation Bindings
Configuring System-Provided Bindings
Using Bindings to Configure Services and Clients