CipherSuitesPolicy.AllowedCipherSuites 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重要
此 API 不符合 CLS 規範。
會將有效密碼組子集作為本政策允許的密碼組集合,傳入 CipherSuitesPolicy(IEnumerable<TlsCipherSuite>) 建構器。
public:
property System::Collections::Generic::IEnumerable<System::Net::Security::TlsCipherSuite> ^ AllowedCipherSuites { System::Collections::Generic::IEnumerable<System::Net::Security::TlsCipherSuite> ^ get(); };
[System.CLSCompliant(false)]
public System.Collections.Generic.IEnumerable<System.Net.Security.TlsCipherSuite> AllowedCipherSuites { get; }
[<System.CLSCompliant(false)>]
member this.AllowedCipherSuites : seq<System.Net.Security.TlsCipherSuite>
Public ReadOnly Property AllowedCipherSuites As IEnumerable(Of TlsCipherSuite)
屬性值
密碼組的集合使此政策允許談判。
- 屬性
備註
Note
在認證時定義密碼套件政策 SslStream ,會阻止作業系統決定哪些密碼套件是最佳協商對象,並要求你手動檢查並更新這些代碼。 我們強烈建議您避免使用此功能,並依賴您持續更新的作業系統政策。
與作業系統底層的 SSL/TLS 實作不同,元素的allowedCipherSuites順序TlsCipherSuite並不保證它們在客戶端-伺服器協商中的優先權。 只有當你使用 OpenSSL 1.1.1 或更高版本的 Linux 系統或 macOS 時,才能初始化這個類別的實例。