SecurityBindingElement.DefaultAlgorithmSuite 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定訊息加密和金鑰包裝演算法。
public:
property System::ServiceModel::Security::SecurityAlgorithmSuite ^ DefaultAlgorithmSuite { System::ServiceModel::Security::SecurityAlgorithmSuite ^ get(); void set(System::ServiceModel::Security::SecurityAlgorithmSuite ^ value); };
public System.ServiceModel.Security.SecurityAlgorithmSuite DefaultAlgorithmSuite { get; set; }
member this.DefaultAlgorithmSuite : System.ServiceModel.Security.SecurityAlgorithmSuite with get, set
Public Property DefaultAlgorithmSuite As SecurityAlgorithmSuite
屬性值
SecurityAlgorithmSuite物件,代表訊息加密和金鑰包裝演算法。
例外狀況
set
上的值為 null。
範例
下列程式碼將示範如何設定這個屬性。
SymmetricSecurityBindingElement b =
SecurityBindingElement.
CreateAnonymousForCertificateBindingElement();
BindingElementCollection outputBindings =
new BindingElementCollection();
b.DefaultAlgorithmSuite = SecurityAlgorithmSuite.Basic128;
b.MessageProtectionOrder =
MessageProtectionOrder.SignBeforeEncrypt;
b.ProtectionTokenParameters =
new KerberosSecurityTokenParameters();
備註
SecurityAlgorithmSuite物件,其中包含許多屬性,可指定要用於簽署、加密、金鑰衍生和其他密碼編譯作業的安全性演算法。 它也會控制用於執行這些密碼編譯作業的金鑰大小。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應