43 lines
2.1 KiB
C#
43 lines
2.1 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Provides the base authentication interface for Web client authentication modules.</summary>
|
|
// Token: 0x02000228 RID: 552
|
|
[Token(Token = "0x2000228")]
|
|
public interface IAuthenticationModule
|
|
{
|
|
/// <summary>Returns an instance of the <see cref="T:System.Net.Authorization" /> class in response to an authentication challenge from a server.</summary>
|
|
/// <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>
|
|
/// <returns>An <see cref="T:System.Net.Authorization" /> instance containing the authorization message for the request, or <see langword="null" /> if the challenge cannot be handled.</returns>
|
|
// Token: 0x06000DEA RID: 3562
|
|
[Token(Token = "0x6000DEA")]
|
|
[Address(Slot = "0")]
|
|
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>
|
|
/// <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>
|
|
/// <returns>An <see cref="T:System.Net.Authorization" /> instance containing the authorization message for the request.</returns>
|
|
// Token: 0x06000DEB RID: 3563
|
|
[Token(Token = "0x6000DEB")]
|
|
[Address(Slot = "1")]
|
|
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: 0x17000292 RID: 658
|
|
// (get) Token: 0x06000DEC RID: 3564
|
|
[Token(Token = "0x17000292")]
|
|
string AuthenticationType
|
|
{
|
|
[Token(Token = "0x6000DEC")]
|
|
[Address(Slot = "2")]
|
|
get;
|
|
}
|
|
}
|
|
}
|