CipherSuitesPolicy.AllowedCipherSuites 屬性

定義

重要

此 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)

屬性值

此原則中允許用來交涉的加密套件集合。

屬性

備註

注意

在驗證上 SslStream 定義加密套件原則可防止OS決定要交涉的最佳加密套件,並要求您手動檢查並更新此程序代碼。 強烈建議您避免使用此功能,並依賴您不斷更新的OS原則。

不同於操作系統的基礎 SSL/TLS 實作,中的allowedCipherSuites元素順序TlsCipherSuite並不保證其在用戶端-伺服器交涉中的優先順序。 如果您搭配 OpenSSL 1.1.1 或更新版本或 macOS 使用 Linux 系統,則只能初始化這個類別的實例。

適用於