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: 0x02000236 RID: 566
|
|
[Token(Token = "0x2000236")]
|
|
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: 0x06000E27 RID: 3623 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E27")]
|
|
[Address(RVA = "0x2231240", Offset = "0x2230040", VA = "0x182231240")]
|
|
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: 0x06000E28 RID: 3624 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E28")]
|
|
[Address(RVA = "0x2231330", Offset = "0x2230130", VA = "0x182231330")]
|
|
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: 0x170002A1 RID: 673
|
|
// (get) Token: 0x06000E29 RID: 3625 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000E2A RID: 3626 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x170002A1")]
|
|
public string UserName
|
|
{
|
|
[Token(Token = "0x6000E29")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000E2A")]
|
|
[Address(RVA = "0x2231470", Offset = "0x2230270", VA = "0x182231470")]
|
|
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: 0x170002A2 RID: 674
|
|
// (get) Token: 0x06000E2B RID: 3627 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000E2C RID: 3628 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x170002A2")]
|
|
public string Password
|
|
{
|
|
[Token(Token = "0x6000E2B")]
|
|
[Address(RVA = "0x2231230", Offset = "0x2230030", VA = "0x182231230")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000E2C")]
|
|
[Address(RVA = "0x2231450", Offset = "0x2230250", VA = "0x182231450")]
|
|
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: 0x170002A3 RID: 675
|
|
// (get) Token: 0x06000E2D RID: 3629 RVA: 0x00002050 File Offset: 0x00000250
|
|
// (set) Token: 0x06000E2E RID: 3630 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x170002A3")]
|
|
public string Domain
|
|
{
|
|
[Token(Token = "0x6000E2D")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
[Token(Token = "0x6000E2E")]
|
|
[Address(RVA = "0x22313F0", Offset = "0x22301F0", VA = "0x1822313F0")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x06000E2F RID: 3631 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E2F")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
internal string InternalGetUserName()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000E30 RID: 3632 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E30")]
|
|
[Address(RVA = "0x2231230", Offset = "0x2230030", VA = "0x182231230")]
|
|
internal string InternalGetPassword()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000E31 RID: 3633 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E31")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
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: 0x06000E32 RID: 3634 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E32")]
|
|
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", 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: 0x06000E33 RID: 3635 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000E33")]
|
|
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", Slot = "5")]
|
|
public NetworkCredential GetCredential(string host, int port, string authenticationType)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000839 RID: 2105
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000839")]
|
|
private string m_domain;
|
|
|
|
// Token: 0x0400083A RID: 2106
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400083A")]
|
|
private string m_userName;
|
|
|
|
// Token: 0x0400083B RID: 2107
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400083B")]
|
|
private SecureString m_password;
|
|
}
|
|
}
|