语言

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不能保证它们在客户端-服务器协商中的优先级。 如果将 Linux 系统与 OpenSSL 1.1.1 或更高版本或 macOS 配合使用,则只能初始化此类的实例。

适用于