NetworkCredential.cs 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // System.Net.NetworkCredential.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Ximian, Inc.
  7. //
  8. namespace System.Net
  9. {
  10. public class NetworkCredential : ICredentials
  11. {
  12. // Fields
  13. string userName;
  14. string password;
  15. string domain;
  16. // Constructors
  17. public NetworkCredential ()
  18. : base ()
  19. {
  20. }
  21. public NetworkCredential (string userName, string password)
  22. {
  23. this.userName = userName;
  24. this.password = password;
  25. }
  26. public NetworkCredential (string userName, string password, string domain)
  27. {
  28. this.userName = userName;
  29. this.password = password;
  30. this.domain = domain;
  31. }
  32. // Properties
  33. public string Domain
  34. {
  35. get { return domain; }
  36. set { domain = value; }
  37. }
  38. public string UserName
  39. {
  40. get { return userName; }
  41. set { userName = value; }
  42. }
  43. public string Password
  44. {
  45. get { return password; }
  46. set { password = value; }
  47. }
  48. [MonoTODO]
  49. public NetworkCredential GetCredential (Uri uri, string authType)
  50. {
  51. return null;
  52. }
  53. }
  54. }