2003-07-13 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[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                 IAuthenticationModule module;
19                 
20                 public Authorization (string token) : this (token, true)
21                 {
22                 }
23
24                 public Authorization (string token, bool complete) 
25                         : this (token, complete, null)
26                 {
27                 }
28                 
29                 public Authorization (string token, bool complete, string connectionGroupId)
30                 {
31                         this.token = token;
32                         this.complete = complete;
33                         this.connectionGroupId = connectionGroupId;
34                 }
35
36                 public string Message {
37                         get { return token; }
38                 }
39
40                 public bool Complete {
41                         get { return complete; }
42                 }
43
44                 public string ConnectionGroupId {
45                         get { return connectionGroupId; }
46                 }       
47                 
48                 public string[] ProtectionRealm {
49                         get { return protectionRealm; }
50                         set { protectionRealm = value; }
51                 }
52
53                 internal IAuthenticationModule Module {
54                         get { return module; }
55                         set { module = value; }
56                 }
57         }
58 }