scripts
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
|
||||
namespace System.Net
|
||||
{
|
||||
/// <summary>Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.</summary>
|
||||
// Token: 0x0200024C RID: 588
|
||||
public class NetworkCredential : ICredentials
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Net.NetworkCredential" /> class.</summary>
|
||||
// Token: 0x060014DF RID: 5343 RVA: 0x00042EB0 File Offset: 0x000410B0
|
||||
public NetworkCredential()
|
||||
{
|
||||
}
|
||||
|
||||
/// <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: 0x060014E0 RID: 5344 RVA: 0x00042EB8 File Offset: 0x000410B8
|
||||
public NetworkCredential(string userName, string password)
|
||||
{
|
||||
this.userName = userName;
|
||||
this.password = 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: 0x060014E1 RID: 5345 RVA: 0x00042ED0 File Offset: 0x000410D0
|
||||
public NetworkCredential(string userName, string password, string domain)
|
||||
{
|
||||
this.userName = userName;
|
||||
this.password = password;
|
||||
this.domain = domain;
|
||||
}
|
||||
|
||||
/// <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>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
|
||||
/// </PermissionSet>
|
||||
// Token: 0x170006D2 RID: 1746
|
||||
// (get) Token: 0x060014E2 RID: 5346 RVA: 0x00042EF0 File Offset: 0x000410F0
|
||||
// (set) Token: 0x060014E3 RID: 5347 RVA: 0x00042F10 File Offset: 0x00041110
|
||||
public string Domain
|
||||
{
|
||||
get
|
||||
{
|
||||
return (this.domain != null) ? this.domain : string.Empty;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.domain = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the user name associated with the credentials.</summary>
|
||||
/// <returns>The user name associated with the credentials.</returns>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
|
||||
/// </PermissionSet>
|
||||
// Token: 0x170006D3 RID: 1747
|
||||
// (get) Token: 0x060014E4 RID: 5348 RVA: 0x00042F1C File Offset: 0x0004111C
|
||||
// (set) Token: 0x060014E5 RID: 5349 RVA: 0x00042F3C File Offset: 0x0004113C
|
||||
public string UserName
|
||||
{
|
||||
get
|
||||
{
|
||||
return (this.userName != null) ? this.userName : string.Empty;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.userName = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <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 constructed with a null password, then the <see cref="P:System.Net.NetworkCredential.Password" /> property will return an empty string.</returns>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
|
||||
/// </PermissionSet>
|
||||
// Token: 0x170006D4 RID: 1748
|
||||
// (get) Token: 0x060014E6 RID: 5350 RVA: 0x00042F48 File Offset: 0x00041148
|
||||
// (set) Token: 0x060014E7 RID: 5351 RVA: 0x00042F68 File Offset: 0x00041168
|
||||
public string Password
|
||||
{
|
||||
get
|
||||
{
|
||||
return (this.password != null) ? this.password : string.Empty;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.password = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Returns an instance of the <see cref="T:System.Net.NetworkCredential" /> class for the specified Uniform Resource Identifier (URI) and authentication type.</summary>
|
||||
/// <returns>A <see cref="T:System.Net.NetworkCredential" /> object.</returns>
|
||||
/// <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>
|
||||
// Token: 0x060014E8 RID: 5352 RVA: 0x00042F74 File Offset: 0x00041174
|
||||
public NetworkCredential GetCredential(global::System.Uri uri, string authType)
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0400119A RID: 4506
|
||||
private string userName;
|
||||
|
||||
// Token: 0x0400119B RID: 4507
|
||||
private string password;
|
||||
|
||||
// Token: 0x0400119C RID: 4508
|
||||
private string domain;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user