SecurityBindingElement.SetKeyDerivation Method (Boolean)

 
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.

Sets a value that indicates whether derived keys are required.

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

public virtual void SetKeyDerivation(
	bool requireDerivedKeys
)

Parameters

requireDerivedKeys
Type: System.Boolean

true to require derived keys; otherwise, false.

The following code shows how to call this method.

SecurityBindingElement security = SecurityBindingElement.CreateMutualCertificateBindingElement();

// Use a secure session.
security = SecurityBindingElement.CreateSecureConversationBindingElement(security, true);

// Specify whether derived keys are required.
security.SetKeyDerivation(true);

.NET Framework
Available since 3.0
Return to top
Show: