mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* WebRequest.cs: added * WebResponse.cs: implemented * WebException.cs: implemented * WebHeaderCollection.cs: added * HttpVersion.cs: implemented * HttpContinueDelegate.cs: added * IWebProxy.cs: added * IWebRequestCreate.cs: added * ICertificatePolicy.cs: added * ServicePoint.cs: stubbed * ServicePointManager.cs: stubbed * CookieContainer.cs: added * Authorization.cs: implemented svn path=/trunk/mcs/; revision=4315
53 lines
992 B
C#
Executable File
53 lines
992 B
C#
Executable File
//
|
|
// System.Net.Authorization.cs
|
|
//
|
|
// Author:
|
|
// Miguel de Icaza ([email protected])
|
|
// Lawrence Pit ([email protected])
|
|
//
|
|
// (C) Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
namespace System.Net {
|
|
|
|
public class Authorization {
|
|
string token;
|
|
bool complete;
|
|
string connectionGroupId;
|
|
string [] protectionRealm;
|
|
|
|
public Authorization (string token) : this (token, true)
|
|
{
|
|
}
|
|
|
|
public Authorization (string token, bool complete)
|
|
: this (token, complete, null)
|
|
{
|
|
}
|
|
|
|
public Authorization (string token, bool complete, string connectionGroupId)
|
|
{
|
|
this.token = token;
|
|
this.complete = complete;
|
|
this.connectionGroupId = connectionGroupId;
|
|
}
|
|
|
|
public string Message {
|
|
get { return token; }
|
|
}
|
|
|
|
public bool Complete {
|
|
get { return complete; }
|
|
}
|
|
|
|
public string ConnectionGroupId {
|
|
get { return connectionGroupId; }
|
|
}
|
|
|
|
public string[] ProtectionRealm {
|
|
get { return protectionRealm; }
|
|
set { protectionRealm = value; }
|
|
}
|
|
}
|
|
}
|