Partilhar via


SecurityBindingElement.SetKeyDerivation(Boolean) Método

Definição

Define um valor que indica se as chaves derivadas são necessárias.

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)

Parâmetros

requireDerivedKeys
Boolean

true para exigir chaves derivadas; caso contrário, false.

Exemplos

O código a seguir mostra como chamar esse método.

SecurityBindingElement security = SecurityBindingElement.CreateMutualCertificateBindingElement();

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

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

Aplica-se a