161 lines
6.8 KiB
C#
161 lines
6.8 KiB
C#
using System;
|
|
using System.Security;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.</summary>
|
|
// Token: 0x02000232 RID: 562
|
|
[Token(Token = "0x2000232")]
|
|
public class NetworkCredential : ICredentials, ICredentialsByHost
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.NetworkCredential" /> class with the specified user name and password.</summary>
|
|
/// <param name="userName">The user name associated with the credentials.</param>
|
|
/// <param name="password">The password for the user name associated with the credentials.</param>
|
|
// Token: 0x06000E11 RID: 3601 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E11")]
|
|
[Address(RVA = "0x8AB7F0", Offset = "0x8AA7F0", VA = "0x1808AB7F0")]
|
|
public NetworkCredential(string userName, string password)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.NetworkCredential" /> class with the specified user name, password, and domain.</summary>
|
|
/// <param name="userName">The user name associated with the credentials.</param>
|
|
/// <param name="password">The password for the user name associated with the credentials.</param>
|
|
/// <param name="domain">The domain associated with these credentials.</param>
|
|
// Token: 0x06000E12 RID: 3602 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E12")]
|
|
[Address(RVA = "0x8AB8E0", Offset = "0x8AA8E0", VA = "0x1808AB8E0")]
|
|
public NetworkCredential(string userName, string password, string domain)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the user name associated with the credentials.</summary>
|
|
/// <returns>The user name associated with the credentials.</returns>
|
|
// Token: 0x1700029D RID: 669
|
|
// (get) Token: 0x06000E13 RID: 3603 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000E14 RID: 3604 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x1700029D")]
|
|
public string UserName
|
|
{
|
|
[Token(Token = "0x6000E13")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000E14")]
|
|
[Address(RVA = "0x8ABA20", Offset = "0x8AAA20", VA = "0x1808ABA20")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the password for the user name associated with the credentials.</summary>
|
|
/// <returns>The password associated with the credentials. If this <see cref="T:System.Net.NetworkCredential" /> instance was initialized with the <paramref name="password" /> parameter set to <see langword="null" />, then the <see cref="P:System.Net.NetworkCredential.Password" /> property will return an empty string.</returns>
|
|
// Token: 0x1700029E RID: 670
|
|
// (get) Token: 0x06000E15 RID: 3605 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000E16 RID: 3606 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x1700029E")]
|
|
public string Password
|
|
{
|
|
[Token(Token = "0x6000E15")]
|
|
[Address(RVA = "0x8AB7E0", Offset = "0x8AA7E0", VA = "0x1808AB7E0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000E16")]
|
|
[Address(RVA = "0x8ABA00", Offset = "0x8AAA00", VA = "0x1808ABA00")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the domain or computer name that verifies the credentials.</summary>
|
|
/// <returns>The name of the domain associated with the credentials.</returns>
|
|
// Token: 0x1700029F RID: 671
|
|
// (get) Token: 0x06000E17 RID: 3607 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000E18 RID: 3608 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x1700029F")]
|
|
public string Domain
|
|
{
|
|
[Token(Token = "0x6000E17")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000E18")]
|
|
[Address(RVA = "0x8AB9A0", Offset = "0x8AA9A0", VA = "0x1808AB9A0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000E19 RID: 3609 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E19")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
internal string InternalGetUserName()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000E1A RID: 3610 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E1A")]
|
|
[Address(RVA = "0x8AB7E0", Offset = "0x8AA7E0", VA = "0x1808AB7E0")]
|
|
internal string InternalGetPassword()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000E1B RID: 3611 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E1B")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
internal string InternalGetDomain()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns an instance of the <see cref="T:System.Net.NetworkCredential" /> class for the specified Uniform Resource Identifier (URI) and authentication type.</summary>
|
|
/// <param name="uri">The URI that the client provides authentication for.</param>
|
|
/// <param name="authType">The type of authentication requested, as defined in the <see cref="P:System.Net.IAuthenticationModule.AuthenticationType" /> property.</param>
|
|
/// <returns>A <see cref="T:System.Net.NetworkCredential" /> object.</returns>
|
|
// Token: 0x06000E1C RID: 3612 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E1C")]
|
|
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "4")]
|
|
public NetworkCredential GetCredential(Uri uri, string authType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Returns an instance of the <see cref="T:System.Net.NetworkCredential" /> class for the specified host, port, and authentication type.</summary>
|
|
/// <param name="host">The host computer that authenticates the client.</param>
|
|
/// <param name="port">The port on the <paramref name="host" /> that the client communicates with.</param>
|
|
/// <param name="authenticationType">The type of authentication requested, as defined in the <see cref="P:System.Net.IAuthenticationModule.AuthenticationType" /> property.</param>
|
|
/// <returns>A <see cref="T:System.Net.NetworkCredential" /> for the specified host, port, and authentication protocol, or <see langword="null" /> if there are no credentials available for the specified host, port, and authentication protocol.</returns>
|
|
// Token: 0x06000E1D RID: 3613 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E1D")]
|
|
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0", Slot = "5")]
|
|
public NetworkCredential GetCredential(string host, int port, string authenticationType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x0400082C RID: 2092
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400082C")]
|
|
private string m_domain;
|
|
|
|
// Token: 0x0400082D RID: 2093
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400082D")]
|
|
private string m_userName;
|
|
|
|
// Token: 0x0400082E RID: 2094
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400082E")]
|
|
private SecureString m_password;
|
|
}
|
|
}
|