AsymmetricSecurityBindingElement.SetKeyDerivation(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a value that indicates whether derived keys are required.
public:
override void SetKeyDerivation(bool requireDerivedKeys);
public override void SetKeyDerivation (bool requireDerivedKeys);
override this.SetKeyDerivation : bool -> unit
Public Overrides Sub SetKeyDerivation (requireDerivedKeys As Boolean)
Parameters
- requireDerivedKeys
- Boolean
true
if derived keys are required; otherwise, false
.
Examples
The following code shows how to set this property.
AsymmetricSecurityBindingElement abe =
(AsymmetricSecurityBindingElement)SecurityBindingElement.
CreateMutualCertificateBindingElement(
MessageSecurityVersion.
WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10);
abe.SetKeyDerivation(false);
Dim abe As AsymmetricSecurityBindingElement = CType(SecurityBindingElement.CreateMutualCertificateBindingElement(MessageSecurityVersion.WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10), AsymmetricSecurityBindingElement)
abe.SetKeyDerivation(False)
Remarks
A derived key is created from an existing key and makes it possible to vary the key used in the course of a conversation. This makes it more difficult for a hacker to decrypt the communication.