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