description | title | ms.date | ms.assetid |
---|---|---|---|
Learn more about: <windowsStreamSecurity> |
<windowsStreamSecurity> |
03/30/2017 |
926bea29-90c7-4a26-9cf0-fb4aa44f6f70 |
Specify Windows stream security settings of the custom binding.
<configuration>
<system.serviceModel>
<bindings>
<customBinding>
<binding>
<windowsStreamSecurity>
<windowsStreamSecurity protectionLevel="None/Sign/EncryptAndSign" />
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
---|---|
protectionLevel | Defines message-level security. 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. Valid values include the following: - None: No protection. - Sign: Messages are signed. - EncryptAndSign: Messages are signed and encrypted. The default is EncryptAndSign. This attribute is of type xref:System.Net.Security.ProtectionLevel. |
None
Element | Description |
---|---|
<binding> | Defines all binding capabilities of the custom binding. |
Transports that use a stream-oriented protocol such as TCP and named pipes support stream-based transport upgrades. Specifically, WCF provides security upgrades. The configuration of this transport security is encapsulated by this configuration element as well as by <sslStreamSecurity>, which can be configured and added to a custom binding
- xref:System.ServiceModel.Channels.CustomBinding
- xref:System.ServiceModel.Configuration.WindowsStreamSecurityElement
- xref:System.ServiceModel.Channels.WindowsStreamSecurityBindingElement
- Bindings
- Extending Bindings
- Custom Bindings
- <customBinding>