편집

다음을 통해 공유


IssuedTokenClientCredential.DefaultKeyEntropyMode Property

Definition

Gets or sets the default value of SecurityKeyEntropyMode.

public:
 property System::ServiceModel::Security::SecurityKeyEntropyMode DefaultKeyEntropyMode { System::ServiceModel::Security::SecurityKeyEntropyMode get(); void set(System::ServiceModel::Security::SecurityKeyEntropyMode value); };
public System.ServiceModel.Security.SecurityKeyEntropyMode DefaultKeyEntropyMode { get; set; }
member this.DefaultKeyEntropyMode : System.ServiceModel.Security.SecurityKeyEntropyMode with get, set
Public Property DefaultKeyEntropyMode As SecurityKeyEntropyMode

Property Value

The value of SecurityKeyEntropyMode. The default is CombinedEntropy.

Exceptions

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

Examples

This code shows how to set this property.

itcc.DefaultKeyEntropyMode = SecurityKeyEntropyMode.ServerEntropy;
itcc.DefaultKeyEntropyMode = SecurityKeyEntropyMode.ServerEntropy

Remarks

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.

Applies to