SecurityBindingElement::CreateMutualCertificateBindingElement Method (MessageSecurityVersion^, Boolean)
.NET Framework (current version)
Creates an asymmetric security binding element that is configured to require certificate-based client authentication as well as certificate-based server authentication.
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.
Return Value
Type: System.ServiceModel.Channels::SecurityBindingElement^A SecurityBindingElement object.
| Exception | Condition |
|---|---|
| ArgumentNullException | version is null. |
The allowSerializedSigningTokenOnReply parameter, when true, enables interoperability with older versions of Web Services Enhancements (WSE).
Note |
|---|
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
Available since 3.0
Show:
