IssuedTokenClientCredential.DefaultKeyEntropyMode 属性

定义

获取或设置默认值 。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

属性值

SecurityKeyEntropyMode 的值。 默认值为 CombinedEntropy

例外

尝试 set 使用只读凭据。

示例

此代码演示如何设置此属性。

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

注解

当客户端 WS-Trust 与安全令牌服务交换以获取颁发的令牌时,有时必须与安全令牌服务交换密钥信息,才能到达共享对称密钥。 安全令牌服务通常指定要在其绑定中使用的萎缩交换机制。 如果未在安全令牌服务的绑定中指定此类机制,则 DefaultKeyEntropyMode 该值用于与安全令牌服务交换 entropy。

适用于