Export (0) Print
Expand All

SecurityBindingElement.CreateSecureConversationBindingElement Method (SecurityBindingElement)

Creates a symmetric security binding element that is configured to establish a secure conversation between the client and service. The security context token issued at the end of the secure conversation handshake is used to secure the messages. The bootstrap security binding element specifies how the secure conversation handshake messages are secured.

Namespace:  System.ServiceModel.Channels
Assemblies:   System.ServiceModel.Security (in System.ServiceModel.Security.dll)
  System.ServiceModel (in System.ServiceModel.dll)

public static SecurityBindingElement CreateSecureConversationBindingElement(
	SecurityBindingElement bootstrapSecurity
)

Parameters

bootstrapSecurity
Type: System.ServiceModel.Channels.SecurityBindingElement

A SecurityBindingElement that contains specification on how the secure conversation handshake messages are secured.

ExceptionCondition
ArgumentNullException

bootstrapSecurity is null.

The binding element is configured to use session-based security context tokens.

The bootstrapSecurity is used to indicate the security binding and policy used to request a secure conversation token from the service.

If bootstrapSecurity is a TransportSecurityBindingElement, the binding element returned by this method is also one, and IncludeTimestamp is set to true; and the LocalClientSecuritySettings object returned from LocalClientSettings has its DetectReplays property set to false; and the LocalServiceSecuritySettings object returned from LocalServiceSettings has its DetectReplays property set to false.

Otherwise, a SymmetricSecurityBindingElement is returned, with RequireSignatureConfirmation set to false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft