.NET API Documentation

Enum SslProtectionLevel

Specifies the level of protection to be used with SSL/TLS.

public enum SslProtectionLevel

Members

Remarks

The SslProtectionLevel enumeration is used to specify the desired level of security when establishing an SSL/TLS connection. It is used in conjunction with the SslStream class to control how data is protected.

When setting the SslProtectionLevel for an SslStream, you are indicating the minimum level of protection you require. The actual level of protection negotiated during the SSL/TLS handshake may be higher depending on the capabilities of the client and server and their respective security settings.

For most applications, SslProtectionLevel.EncryptAndSign is recommended to ensure the confidentiality and integrity of data exchanged over the network.

Requirements

.NET Framework: Supported in .NET Framework 2.0 and later versions. .NET: Supported in .NET Core 1.0 and later versions. Mono: Supported in all versions. Target Platforms: Windows, macOS, Linux, Xamarin. .NET Standard: Supported in .NET Standard 1.3 and later versions.

See Also