SecurityBindingElement.SetKeyDerivation(Boolean) 方法

定义

设置一个值,该值指示是否需要派生密钥。

public:
 virtual void SetKeyDerivation(bool requireDerivedKeys);
public virtual void SetKeyDerivation (bool requireDerivedKeys);
abstract member SetKeyDerivation : bool -> unit
override this.SetKeyDerivation : bool -> unit
Public Overridable Sub SetKeyDerivation (requireDerivedKeys As Boolean)

参数

requireDerivedKeys
Boolean

true 需要派生密钥;否则为 false

示例

下面的代码演示如何调用此方法。

SecurityBindingElement security = SecurityBindingElement.CreateMutualCertificateBindingElement();

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

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

适用于