Compartir a través de


SecurityBindingElement.SetKeyDerivation(Boolean) Método

Definición

Establece un valor que indica si se requieren claves derivadas.

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

Es true si se necesitan claves derivadas; de lo contrario, es false.

Ejemplos

El siguiente código muestra cómo llamar a este método.

SecurityBindingElement security = SecurityBindingElement.CreateMutualCertificateBindingElement();

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

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

Se aplica a