SecurityBindingElement.CreateSslNegotiationBindingElement Method (Boolean, Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a symmetric security binding element that does SOAP SSL negotiation, noting whether a client certificate and cancellation is required.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public static SymmetricSecurityBindingElement CreateSslNegotiationBindingElement(
	bool requireClientCertificate,
	bool requireCancellation
)

Parameters

requireClientCertificate
Type: System.Boolean

true if a client certificate is required during the SSL negotiation.

requireCancellation
Type: System.Boolean

true if cancellation is required. Setting it to false enables a security context token that is useful in Web farm scenarios, because in this mode the session state is encoded inside the established security context token instead of being kept in the server memory.

The security context token issued after the SSL negotiation is session based is requireCancellation is true; otherwise, it is cookie based.

.NET Framework
Available since 3.0
Return to top
Show: