SecurityBindingElement::CreateSslNegotiationBindingElement Method (Boolean, Boolean)
.NET Framework (current version)
Creates a symmetric security binding element that does SOAP SSL negotiation, noting whether a client certificate and cancellation is required.
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.
Return Value
Type: System.ServiceModel.Channels::SymmetricSecurityBindingElement^A SymmetricSecurityBindingElement that holds the new binding.
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
Available since 3.0
Show: