CreateMutualCertificateBindingElement Method (MessageSecurityVersion, Boolean)

SecurityBindingElement.CreateMutualCertificateBindingElement Method (MessageSecurityVersion, Boolean)

 

Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.

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

public static SecurityBindingElement CreateMutualCertificateBindingElement(
	MessageSecurityVersion version,
	bool allowSerializedSigningTokenOnReply
)

Parameters

version
Type: System.ServiceModel.MessageSecurityVersion

The message security version.

allowSerializedSigningTokenOnReply
Type: System.Boolean

true to allow a serialized signing token on the reply; otherwise, false.

Exception Condition
ArgumentNullException

version is null.

The allowSerializedSigningTokenOnReply parameter, when true, enables interoperability with older versions of Web Services Enhancements (WSE).

System_CAPS_noteNote

Once a SecurityBindingElement object is created by calling this method, the MessageSecurityVersion property should be treated as immutable. Inconsistent binding behavior may occur if this value is modified.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft