AuthenticationLevel Enumeration

Namespace: System.Net.Security

Assembly: System.Net.Primitives.dll

Summary

Specifies the level of authentication required for a System.Net.Security.SslStream or System.Net.Security.NegotiateStream.

Remarks

The AuthenticationLevel enumeration is used to specify the type of authentication that should occur during the SSL/TLS handshake or the authentication process with NegotiateStream.

When using SslStream, this value controls whether the client and server authenticate each other. When using NegotiateStream, it controls whether authentication is performed at all.

It's crucial to set this value appropriately based on the security requirements of your application to ensure secure communication.

Syntax

public enum AuthenticationLevel

Members

None

No authentication is required.

MutualAuthRequired

Both the client and the server must authenticate each other.

ClientAuthRequired

The server must authenticate the client, but the client is not required to authenticate the server.

Requirements

Namespace:System.Net.Security

Assembly:

See Also