System.Net.AuthenticationSchemes Enumeration

Specifies protocols for authentication.

Syntax

[System.Flags]
public enum AuthenticationSchemes

Remarks

This enumeration is used to specify the method used to authenticate client requests being processed by System.Net.HttpListener objects.

Note   Basic authentication requires the exchange of a password and should therefore be avoided except in the case of secure, encrypted connections.

Members

Member NameDescription
Anonymous

Specifies anonymous authentication.

Basic

Specifies basic authentication.

Digest

Specifies digest authentication.

IntegratedWindowsAuthentication

Specifies Windows authentication.

Negotiate

Negotiates with the client to determine the authentication scheme. If both client and server support Kerberos, it is used; otherwise, NTLM is used.

None

No authentication is allowed. A client requesting an System.Net.HttpListener object with this flag set will always receive a 403 Forbidden status. Use this flag when a resource should never be served to a client.

Ntlm

Specifies NTLM authentication.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0