<netTcpBinding> 的 <transport>

为使用 <netTcpBinding>配置的终结点定义消息级安全性要求的类型。

<system.serviceModel>
  <binding>
    <netTcpBinding>
      <binding>
        <netTcpBinding> 的 <security>
          <netTcpBinding> 的 <transport>

<security>
   <transport
      clientCredentialType="Basic/Certificate/Digest/None/Ntlm/Windows"
      protectionLevel="None/Sign/EncryptAndSign" />
</security>

属性和元素

属性

属性 说明

clientCredentialType

可选。指定要在使用传输安全性执行客户端身份验证时使用的凭据类型。

protectionLevel

可选。定义 TCP 传输级别的安全性。对消息进行签名可以降低该消息在传输过程中被第三方篡改的风险。加密可以在传输过程中提供数据级保密。

默认值为 EncryptAndSign

子元素

None

父元素

元素 说明

<netTcpBinding> 的 <security>

指定 <netTcpBinding>的安全功能。

备注

使用传输安全性以获得 SOAP 消息的完整性和保密性以及相互身份验证。如果在绑定上选择此安全模式,则使用安全传输配置信道堆栈,并且使用传输安全性(如 HTTPS 或 SSL)保护 SOAP 消息安全通过 TCP 传递。

另请参见

参考

TcpTransportSecurity
Transport
Transport
NetTcpTransportSecurityElement

概念

<binding>

其他资源

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