Authorization.cs 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. public Authorization (string token) : this (token, true)
  17. {
  18. }
  19. public Authorization (string token, bool complete)
  20. : this (token, complete, null)
  21. {
  22. }
  23. public Authorization (string token, bool complete, string connectionGroupId)
  24. {
  25. this.token = token;
  26. this.complete = complete;
  27. this.connectionGroupId = connectionGroupId;
  28. }
  29. public string Message {
  30. get { return token; }
  31. }
  32. public bool Complete {
  33. get { return complete; }
  34. }
  35. public string ConnectionGroupId {
  36. get { return connectionGroupId; }
  37. }
  38. public string[] ProtectionRealm {
  39. get { return protectionRealm; }
  40. set { protectionRealm = value; }
  41. }
  42. }
  43. }