Partilhar via


SymmetricSecurityBindingElement.ProtectionTokenParameters Propriedade

Definição

Obtém ou define os parâmetros de token de proteção.

public:
 property System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ ProtectionTokenParameters { System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ get(); void set(System::ServiceModel::Security::Tokens::SecurityTokenParameters ^ value); };
public System.ServiceModel.Security.Tokens.SecurityTokenParameters ProtectionTokenParameters { get; set; }
member this.ProtectionTokenParameters : System.ServiceModel.Security.Tokens.SecurityTokenParameters with get, set
Public Property ProtectionTokenParameters As SecurityTokenParameters

Valor da propriedade

O SecurityTokenParameters.

Exemplos

O código a seguir mostra como definir essa propriedade.

// Create a SymmetricSecurityBindingElement.
SymmetricSecurityBindingElement ssbe =
    new SymmetricSecurityBindingElement();

// Set the algorithm suite to one that uses 128-bit keys.
ssbe.DefaultAlgorithmSuite = SecurityAlgorithmSuite.Basic128;

   // Set MessageProtectionOrder to SignBeforeEncrypt.
ssbe.MessageProtectionOrder = MessageProtectionOrder.SignBeforeEncrypt;

// Use a Kerberos token as the protection token.
ssbe.ProtectionTokenParameters = new KerberosSecurityTokenParameters();

Aplica-se a