System.Net.Security.AuthenticationLevel Enum
Specifies the level of authentication to be performed for a secure stream.
namespace
System.Net.Security
public enum AuthenticationLevel
Members
The AuthenticationLevel enumeration defines the following members:
| Member | Description | 1.
|---|---|
| None | No authentication is performed. |
| MutualAuthRequired | Mutual authentication is required. Both the client and the server must authenticate themselves to each other. |
| MutualAuthPreferred | Mutual authentication is preferred but not required. The client attempts to authenticate the server, and the server attempts to authenticate the client, but the connection can proceed even if one or both authentications fail. |
Remarks
The AuthenticationLevel enumeration is used to configure the level of authentication for secure network connections. When using protocols like SSL/TLS, this enumeration determines whether the client and server will attempt to authenticate each other.
None is the least secure option, as it bypasses authentication entirely. MutualAuthRequired provides the highest level of security by ensuring that both parties are verified. MutualAuthPreferred offers a balance, allowing for authentication but gracefully handling cases where it might not be possible.
Requirements
| Assembly | File |
|---|---|
| System.dll | System.dll |