Authorization.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // System.Net.Authorization.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. // Lawrence Pit ([email protected])
  7. //
  8. // (C) Ximian, Inc. http://www.ximian.com
  9. //
  10. namespace System.Net {
  11. public class Authorization {
  12. string token;
  13. bool complete;
  14. string connectionGroupId;
  15. string [] protectionRealm;
  16. IAuthenticationModule module;
  17. public Authorization (string token) : this (token, true)
  18. {
  19. }
  20. public Authorization (string token, bool complete)
  21. : this (token, complete, null)
  22. {
  23. }
  24. public Authorization (string token, bool complete, string connectionGroupId)
  25. {
  26. this.token = token;
  27. this.complete = complete;
  28. this.connectionGroupId = connectionGroupId;
  29. }
  30. public string Message {
  31. get { return token; }
  32. }
  33. public bool Complete {
  34. get { return complete; }
  35. }
  36. public string ConnectionGroupId {
  37. get { return connectionGroupId; }
  38. }
  39. public string[] ProtectionRealm {
  40. get { return protectionRealm; }
  41. set { protectionRealm = value; }
  42. }
  43. internal IAuthenticationModule Module {
  44. get { return module; }
  45. set { module = value; }
  46. }
  47. }
  48. }