This documentation is archived and is not being maintained.

IssuedTokenClientCredential.DefaultKeyEntropyMode Property

Gets or sets the default value of SecurityKeyEntropyMode.

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

public SecurityKeyEntropyMode DefaultKeyEntropyMode { get; set; }


An attempt was made to set a read-only credential.

When the client does WS-Trust exchange with the Security Token Service to obtain the issued token, it sometimes must exchange key entropy with the Security Token Service to arrive at a shared symmetric key. The Security Token Service typically specifies the entropy exchange mechanism to use in its binding. If no such mechanism is specified in the Security Token Service's binding, the DefaultKeyEntropyMode value is used to exchange entropy with the Security Token Service.

This code shows how to set this property.

itcc.DefaultKeyEntropyMode = SecurityKeyEntropyMode.ServerEntropy;

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.