SecurityBindingElement::SetKeyDerivation Method (Boolean)

 

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: