KerberosSecurityTokenParameters Constructor
Collapse the table of content
Expand the table of content

KerberosSecurityTokenParameters Constructor ()


Initializes a new instance of the KerberosSecurityTokenParameters class.

Namespace:   System.ServiceModel.Security.Tokens
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public KerberosSecurityTokenParameters()

The new instance property values are set to their defaults:

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

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft