SecurityProtocolType 枚举

定义

指定 Schannel 安全包支持的安全协议。Specifies the security protocols that are supported by the Schannel security package.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class SecurityProtocolType
[System.Flags]
public enum SecurityProtocolType
type SecurityProtocolType = 
Public Enum SecurityProtocolType
继承
SecurityProtocolType
属性

字段

Ssl3 48

指定安全套接字层 (SSL) 3.0 安全协议。Specifies the Secure Socket Layer (SSL) 3.0 security protocol. SSL 3.0 已由传输层安全性 (TLS) 协议取代,之所以仍然提供这个方法,只是为了向后兼容。SSL 3.0 has been superseded by the Transport Layer Security (TLS) protocol and is provided for backward compatibility only.

SystemDefault 0

允许操作系统选择要使用的最佳协议,并将其用于阻止不安全的协议。Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. 应使用此值,除非应用有特定原因不得使用此值。Unless your app has a specific reason not to, you should use this value.

Tls 192

指定传输层安全 (TLS) 1.0 安全协议。Specifies the Transport Layer Security (TLS) 1.0 security protocol. TLS 1.0 协议在 IETF RFC 2246 中定义。The TLS 1.0 protocol is defined in IETF RFC 2246.

Tls11 768

指定传输层安全 (TLS) 1.1 安全协议。Specifies the Transport Layer Security (TLS) 1.1 security protocol. TLS 1.1 协议在 IETF RFC 4346 中定义。The TLS 1.1 protocol is defined in IETF RFC 4346. 在 Windows 系统上,从 Windows 7 开始支持此值。On Windows systems, this value is supported starting with Windows 7.

Tls12 3072

指定传输层安全 (TLS) 1.2 安全协议。Specifies the Transport Layer Security (TLS) 1.2 security protocol. TLS 1.2 协议在 IETF RFC 5246 中定义。The TLS 1.2 protocol is defined in IETF RFC 5246. 在 Windows 系统上,从 Windows 7 开始支持此值。On Windows systems, this value is supported starting with Windows 7.

Tls13 12288

指定 TLS 1.3 安全协议。Specifies the TLS 1.3 security protocol. 此 TLS 协议在 IETF RFC 8446 定义。The TLS protocol is defined in IETF RFC 8446.

注解

此枚举定义一组值,您可以使用这些值指定要使用的传输安全协议。This enumeration defines the set of values that you can use to specify which transport security protocol to use. 它是 SecurityProtocol 属性的枚举类型。It is the enumerated type for the SecurityProtocol property. 在 .NET Framework 中使用 HTTP Api 时,使用此枚举来确定传输安全协议策略,如 WebClientHttpWebRequestHttpClientSmtpClient (使用 TLS/SSL 时)。Use this enumeration to determine your transport security protocol policy when you're using HTTP APIs in the .NET Framework such as WebClient, HttpWebRequest, HttpClient, and SmtpClient (when using TLS/SSL).

传输层安全性(TLS)协议假设正在使用面向连接的协议(通常是 TCP)。The Transport Layer Security (TLS) protocols assume that a connection-oriented protocol, typically TCP, is in use.

适用于

另请参阅