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; }

Exception Condition

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
Available since 3.0
Return to top