using System; namespace System.Net { /// Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication. // Token: 0x0200024C RID: 588 public class NetworkCredential : ICredentials { /// Initializes a new instance of the class. // Token: 0x060014DF RID: 5343 RVA: 0x00042EB0 File Offset: 0x000410B0 public NetworkCredential() { } /// Initializes a new instance of the class with the specified user name and password. /// The user name associated with the credentials. /// The password for the user name associated with the credentials. // Token: 0x060014E0 RID: 5344 RVA: 0x00042EB8 File Offset: 0x000410B8 public NetworkCredential(string userName, string password) { this.userName = userName; this.password = password; } /// Initializes a new instance of the class with the specified user name, password, and domain. /// The user name associated with the credentials. /// The password for the user name associated with the credentials. /// The domain associated with these credentials. // 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; } /// Gets or sets the domain or computer name that verifies the credentials. /// The name of the domain associated with the credentials. /// /// /// // 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; } } /// Gets or sets the user name associated with the credentials. /// The user name associated with the credentials. /// /// /// // 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; } } /// Gets or sets the password for the user name associated with the credentials. /// The password associated with the credentials. If this instance was constructed with a null password, then the property will return an empty string. /// /// /// // 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; } } /// Returns an instance of the class for the specified Uniform Resource Identifier (URI) and authentication type. /// A object. /// The URI that the client provides authentication for. /// The type of authentication requested, as defined in the property. // 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; } }