Partilhar via


<transport> of <netTcpBinding>

Defines the type of message-level security requirements for an endpoint configured with the <netTcpBinding>.

Schema Hierarchy

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

Syntax

<netTcpBinding>
    <binding>
        <security
         mode="None|Transport|Message|TransportWithMessageCredential|TransportCredentialOnly">
            <transport clientCredentialType="None|Basic|Digest|Ntlm|Windows"
             proxyCredentialType="None|Basic|Digest|Ntlm|Windows" realm="string" >
                <extendedProtectionPolicy
                     policyEnforcement="Never|WhenSupported|Always"
                     protectionScenario="TransportSelected|TrustedProxy">
                    <customServiceNames></customServiceNames>
                        </extendedProtectionPolicy>
            </transport>
        </security>
    </binding>
</netTcpBinding>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements

Attributes

Attribute Description

clientCredentialType

Optional. Specifies the type of credential to be used when performing client authentication using Transport security.

protectionLevel

Optional. Defines security at the level of the TCP transport. Signing messages mitigates the risk of a third party tampering with the message while it is being transferred. Encryption provides data-level privacy during transport.

The default value is EncryptAndSign.

policyEnforcement

This enumeration specifies when the ExtendedProtectionPolicy should be enforced.

  1. Never – The policy is never enforced (Extended Protection is disabled).

  2. WhenSupported – The policy is enforced only if the client supports Extended Protection.

  3. Always – The policy is always enforced. Clients which don’t support Extended Protection will fail to authenticate.

Child Elements

None

Parent Elements

Element Description

<security> of <netTcpBinding>

Specifies the security capabilities of the <netTcpBinding>.

Remarks

Use Transport security for integrity and confidentiality of the SOAP message and for mutual authentication. If this security mode is selected on a binding, the channel stack is configured using a secure transport and the SOAP messages are secured using transport security such as HTTPS or SSL over TCP.

See Also

Reference

TcpTransportSecurity
Transport
Transport
NetTcpTransportSecurityElement

Concepts

<binding>

Other Resources

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