Documentation for this section has not yet been entered.
The System.Net.HttpListener uses the specified scheme to authenticate all incoming requests. The HttpListener.GetContext and HttpListener.EndGetContext(IAsyncResult) methods return an incoming client request only if the System.Net.HttpListener successfully authenticates the request.
You can interrogate the identity of a successfully authenticated client by using the HttpListenerContext.User property.
If you want an System.Net.HttpListener object to use different authentication mechanisms based on characteristics of the requests it receives (for example, the request's HttpListenerRequest.Url or HttpListenerRequest.UserHostName property), you must implement a method that chooses the authentication scheme. For instructions about how to do this, see the HttpListener.AuthenticationSchemeSelectorDelegate property documentation.
To set this property to enable Digest, NTLM, or Negotiate requires the System.Security.Permissions.SecurityPermission, System.Security.Permissions.SecurityPermissionFlag.ControlPrincipal.