mscorlib(4.0.0.0) API with additions
Authorization.cs
1 namespace System.Net
2 {
4  public class Authorization
5  {
6  private string m_Message;
7 
8  private bool m_Complete;
9 
10  private string[] m_ProtectionRealm;
11 
12  private string m_ConnectionGroupId;
13 
14  private bool m_MutualAuth;
15 
18  public string Message => m_Message;
19 
22  public string ConnectionGroupId => m_ConnectionGroupId;
23 
27  public bool Complete => m_Complete;
28 
31  public string[] ProtectionRealm
32  {
33  get
34  {
35  return m_ProtectionRealm;
36  }
37  set
38  {
39  string[] array = m_ProtectionRealm = ValidationHelper.MakeEmptyArrayNull(value);
40  }
41  }
42 
46  public bool MutuallyAuthenticated
47  {
48  get
49  {
50  if (Complete)
51  {
52  return m_MutualAuth;
53  }
54  return false;
55  }
56  set
57  {
58  m_MutualAuth = value;
59  }
60  }
61 
64  public Authorization(string token)
65  {
66  m_Message = ValidationHelper.MakeStringNull(token);
67  m_Complete = true;
68  }
69 
73  public Authorization(string token, bool finished)
74  {
75  m_Message = ValidationHelper.MakeStringNull(token);
76  m_Complete = finished;
77  }
78 
83  public Authorization(string token, bool finished, string connectionGroupId)
84  : this(token, finished, connectionGroupId, mutualAuth: false)
85  {
86  }
87 
88  internal Authorization(string token, bool finished, string connectionGroupId, bool mutualAuth)
89  {
90  m_Message = ValidationHelper.MakeStringNull(token);
91  m_ConnectionGroupId = ValidationHelper.MakeStringNull(connectionGroupId);
92  m_Complete = finished;
93  m_MutualAuth = mutualAuth;
94  }
95 
96  internal void SetComplete(bool complete)
97  {
98  m_Complete = complete;
99  }
100  }
101 }
Contains an authentication message for an Internet server.
Definition: Authorization.cs:4
Authorization(string token)
Creates a new instance of the T:System.Net.Authorization class with the specified authorization messa...
bool Complete
Gets the completion status of the authorization.
string ConnectionGroupId
Gets a unique identifier for user-specific connections.
bool MutuallyAuthenticated
Gets or sets a T:System.Boolean value that indicates whether mutual authentication occurred.
string Message
Gets the message returned to the server in response to an authentication challenge.
Authorization(string token, bool finished)
Creates a new instance of the T:System.Net.Authorization class with the specified authorization messa...
Authorization(string token, bool finished, string connectionGroupId)
Creates a new instance of the T:System.Net.Authorization class with the specified authorization messa...
string [] ProtectionRealm
Gets or sets the prefix for Uniform Resource Identifiers (URIs) that can be authenticated with the P:...