37 lines
2.2 KiB
C#
37 lines
2.2 KiB
C#
using System;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Provides the base authentication interface for Web client authentication modules.</summary>
|
|
// Token: 0x0200023B RID: 571
|
|
public interface IAuthenticationModule
|
|
{
|
|
/// <summary>Returns an instance of the <see cref="T:System.Net.Authorization" /> class in respose to an authentication challenge from a server.</summary>
|
|
/// <returns>An <see cref="T:System.Net.Authorization" /> instance containing the authorization message for the request, or null if the challenge cannot be handled.</returns>
|
|
/// <param name="challenge">The authentication challenge sent by the server. </param>
|
|
/// <param name="request">The <see cref="T:System.Net.WebRequest" /> instance associated with the challenge. </param>
|
|
/// <param name="credentials">The credentials associated with the challenge. </param>
|
|
// Token: 0x06001467 RID: 5223
|
|
Authorization Authenticate(string challenge, WebRequest request, ICredentials credentials);
|
|
|
|
/// <summary>Returns an instance of the <see cref="T:System.Net.Authorization" /> class for an authentication request to a server.</summary>
|
|
/// <returns>An <see cref="T:System.Net.Authorization" /> instance containing the authorization message for the request.</returns>
|
|
/// <param name="request">The <see cref="T:System.Net.WebRequest" /> instance associated with the authentication request. </param>
|
|
/// <param name="credentials">The credentials associated with the authentication request. </param>
|
|
// Token: 0x06001468 RID: 5224
|
|
Authorization PreAuthenticate(WebRequest request, ICredentials credentials);
|
|
|
|
/// <summary>Gets the authentication type provided by this authentication module.</summary>
|
|
/// <returns>A string indicating the authentication type provided by this authentication module.</returns>
|
|
// Token: 0x170006B4 RID: 1716
|
|
// (get) Token: 0x06001469 RID: 5225
|
|
string AuthenticationType { get; }
|
|
|
|
/// <summary>Gets a value indicating whether the authentication module supports preauthentication.</summary>
|
|
/// <returns>true if the authorization module supports preauthentication; otherwise false.</returns>
|
|
// Token: 0x170006B5 RID: 1717
|
|
// (get) Token: 0x0600146A RID: 5226
|
|
bool CanPreAuthenticate { get; }
|
|
}
|
|
}
|