SecurityBindingElement.CreateUserNameOverTransportBindingElement Method

Definition

Creates a security binding element that is configured for client authentication based on a user name and password sent as part of the SOAP message. The binding element requires the transport to provide server authentication and message protection (for example, HTTPS).

C#
public static System.ServiceModel.Channels.TransportSecurityBindingElement CreateUserNameOverTransportBindingElement();

Returns

A TransportSecurityBindingElement object.

Remarks

The created binding has IncludeTimestamp set to true. The LocalClientSecuritySettings object returned from LocalClientSettings has its DetectReplays property set to false.

The LocalServiceSecuritySettings object returned from LocalServiceSettings has its DetectReplays property set to false.

Applies to

Produkt Versiounen
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0