Files
mono/mcs/class/System/System.Net/NetworkCredential.cs
T
Duncan Mak ce2078254b 2002-02-24 Duncan Mak <[email protected]>
* 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
2002-02-24 19:03:05 +00:00

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;
}
}
}