AuthenticationService Class

Namespace: System.Net.Security

Assembly: System (in System.dll)

Represents the authentication service used by a client to authenticate a server.

public abstract class AuthenticationService

Remarks

The AuthenticationService class is an abstract base class. It provides a base implementation for the authentication service used by clients to authenticate servers. Derived classes can provide specific authentication mechanisms, such as Kerberos or NTLM.

This class is used in conjunction with the AuthenticationSession class to manage the authentication process.

Fields

The AuthenticationService class has no public fields.

Constructors

The AuthenticationService class has no public constructors.

Methods

BeginAuthenticate

Begins an asynchronous authentication operation.

protected abstract IAsyncResult BeginAuthenticate(AsyncCallback callback, object state);
Parameters
  • callback
    An AsyncCallback delegate that references the method to invoke when the asynchronous operation completes.
  • state
    A user-defined object that distinguishes this call from other calls to this method.
Returns
An IAsyncResult object that represents the asynchronous operation.
Remarks
This method starts the authentication process asynchronously. The AsyncCallback delegate is invoked when the authentication operation is finished.

EndAuthenticate

Ends an asynchronous authentication operation.

protected abstract void EndAuthenticate(IAsyncResult asyncResult);
Parameters
  • asyncResult
    An IAsyncResult object returned by a call to BeginAuthenticate.
Returns
This method does not return a value.
Remarks
This method must be called to complete the asynchronous authentication operation started by BeginAuthenticate.

Inheritance Hierarchy

Object
  └ AuthenticationService

Requirements

Client: Supported in Windows Vista, Windows XP SP2, Windows Server 2003 SP1.
Server: Supported in Windows Server 2008, Windows Server 2003 SP2, Windows Server 2003.
.NET Framework Versions: Supported in 3.0, 2.0.

See Also