Rediger

Del via


AsymmetricSecurityBindingElement.SetKeyDerivation(Boolean) Method

Definition

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.

Applies to