SecurityBindingElement.CreateSecureConversationBindingElement Method (SecurityBindingElement)

 
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 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
Assembly:  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.

Exception Condition
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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: