IssuedTokenClientCredential.DefaultKeyEntropyMode 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定預設值。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 該值將用於與安全令牌服務交換熵。