Muokkaa

Jaa


KerberosSecurityTokenParameters Constructors

Definition

Initializes a new instance of the KerberosSecurityTokenParameters class.

Overloads

KerberosSecurityTokenParameters()

Initializes a new instance of the KerberosSecurityTokenParameters class.

KerberosSecurityTokenParameters(KerberosSecurityTokenParameters)

Initializes a new instance of the KerberosSecurityTokenParameters class.

Remarks

The difference between these overloads is where instance property values come from. KerberosSecurityTokenParameters sets them to their default values. KerberosSecurityTokenParameters takes them from the instance referenced by the input parameter.

KerberosSecurityTokenParameters()

Initializes a new instance of the KerberosSecurityTokenParameters class.

public:
 KerberosSecurityTokenParameters();
public KerberosSecurityTokenParameters ();
Public Sub New ()

Examples

The following code shows how to call this constructor.

// 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();

Remarks

The new instance property values are set to their defaults:

Applies to

KerberosSecurityTokenParameters(KerberosSecurityTokenParameters)

Initializes a new instance of the KerberosSecurityTokenParameters class.

protected:
 KerberosSecurityTokenParameters(System::ServiceModel::Security::Tokens::KerberosSecurityTokenParameters ^ other);
protected KerberosSecurityTokenParameters (System.ServiceModel.Security.Tokens.KerberosSecurityTokenParameters other);
new System.ServiceModel.Security.Tokens.KerberosSecurityTokenParameters : System.ServiceModel.Security.Tokens.KerberosSecurityTokenParameters -> System.ServiceModel.Security.Tokens.KerberosSecurityTokenParameters
Protected Sub New (other As KerberosSecurityTokenParameters)

Parameters

other
KerberosSecurityTokenParameters

The other instance of this class.

Exceptions

other is null.

Remarks

The new instance property values are set to the corresponding values in other.

Applies to