<netTcpBinding> 的 <security>

定义绑定的安全设置。

架构层次结构

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

语法

<security mode="Message/None/Transport/TransportWithCredential">
   <transport
      clientCredentialType="Basic/Certificate/Digest/None/Ntlm/Windows"
           protectionLevel="None/Sign/EncryptAndSign" />
   <message
      algorithmSuite="Basic128/Basic192/Basic256/Basic128Rsa15/Basic256Rsa15/TripleDes/TripleDesRsa15/Basic128Sha256/Basic192Sha256/TripleDesSha256/Basic128Sha256Rsa15/Basic192Sha256Rsa15/Basic256Sha256Rsa15/TripleDesSha256Rsa15"
      clientCredentialType="Certificate/IssuedToken/None/UserName/Windows" />
</security>

属性和元素

以下几节描述了特性、子元素和父元素

属性

特性 说明

mode

可选项。指定所应用的安全类型。以下列出了有效值。默认值为 Transport

此属性的类型为 SecurityMode

子元素

元素 说明

<netTcpBinding> 的 <transport>

定义传输的安全设置。此元素的类型为 TcpTransportSecurityElement

<netTcpBinding> 的 <message> 元素

定义消息的安全设置。此元素的类型为 MessageSecurityOverTcpElement

父元素

元素 说明

binding

<netTcpBinding> 的绑定元素。

备注

每个标准绑定都提供用于控制传输安全性要求的参数。这些参数通常包括指定是使用消息级安全性还是使用传输级安全性的安全模式,还包括客户端凭据类型的选项。基于这些参数提供的可供选择的选项,构建一个具有适当安全性的信道堆栈。

由 Windows Communication Foundation (WCF) 提供的系统提供的绑定是一组旨在满足一些最常见的方案要求的绑定。所有这些绑定都允许为某些特定的目标方案指定安全要求。

此配置元素提供用于 netTcpBinding 的安全规范。这是一种适合于跨计算机通信的安全、可靠且进行了优化的绑定。默认情况下,它生成运行时通信堆栈,该堆栈支持用于消息传递的 TCP、消息安全性和身份验证的 Windows 安全、可靠的 WS-ReliableMessaging,以及二进制消息编码。

另请参见

参考

NetTcpSecurity
Security
Security
NetTcpSecurityElement

概念

<binding>

其他资源

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