System.Net.Security.SecureChannelType Enum

Enum SecureChannelType

Namespace: System.Net.Security
Assembly: System.Net.Primitives (in System.Net.Primitives.dll)

Specifies the type of secure channel that is used for communication. This enumeration is used by the SslClientAuthenticationOptions structure to specify the SSL/TLS protocol version.

Syntax

public enum SecureChannelType

Members

Member Description
Ssl The Secure Sockets Layer (SSL) protocol. This value is used for SSL 2.0 and SSL 3.0.
Tls The Transport Layer Security (TLS) protocol. This value is used for TLS 1.0, TLS 1.1, and TLS 1.2.
Tls11 The TLS 1.1 protocol.
Tls12 The TLS 1.2 protocol.
Tls13 The TLS 1.3 protocol.
Default The default secure channel type. This is typically the highest TLS version supported by the client.

Remarks

The SecureChannelType enumeration allows developers to specify the desired security protocol version when establishing a secure connection. This can be crucial for compatibility with older systems or for enforcing stronger security standards.

When using the Default value, the system will attempt to use the most secure protocol that is mutually supported by both the client and the server. It is generally recommended to use Default unless specific protocol versions need to be enforced.

Requirements

Namespace: System.Net.Security
Assembly: System.Net.Primitives (in System.Net.Primitives.dll)