mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
* ICredentialLookup.cs: Added the GetCredential method to the
interface. The interface is named "ICredentials", should this file
be renamed?
* NetworkCredential.cs: Added to CVS. Need to investigate on how
GetCredential() works
svn path=/trunk/mcs/; revision=2617
64 lines
1023 B
C#
Executable File
64 lines
1023 B
C#
Executable File
//
|
|
// System.Net.NetworkCredential.cs
|
|
//
|
|
// Author: Duncan Mak ([email protected])
|
|
//
|
|
// (C) Ximian, Inc.
|
|
//
|
|
|
|
namespace System.Net
|
|
{
|
|
public class NetworkCredential : ICredentials
|
|
{
|
|
// Fields
|
|
string userName;
|
|
string password;
|
|
string domain;
|
|
|
|
// Constructors
|
|
public NetworkCredential ()
|
|
: base ()
|
|
{
|
|
}
|
|
|
|
public NetworkCredential (string userName, string password)
|
|
{
|
|
this.userName = userName;
|
|
this.password = password;
|
|
}
|
|
|
|
public NetworkCredential (string userName, string password, string domain)
|
|
{
|
|
this.userName = userName;
|
|
this.password = password;
|
|
this.domain = domain;
|
|
}
|
|
|
|
// Properties
|
|
|
|
public string Domain
|
|
{
|
|
get { return domain; }
|
|
set { domain = value; }
|
|
}
|
|
|
|
public string UserName
|
|
{
|
|
get { return userName; }
|
|
set { userName = value; }
|
|
}
|
|
|
|
public string Password
|
|
{
|
|
get { return password; }
|
|
set { password = value; }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public NetworkCredential GetCredential (Uri uri, string authType)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
}
|