146 lines
5.1 KiB
C#
146 lines
5.1 KiB
C#
using System;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>Contains an authentication message for an Internet server.</summary>
|
|
// Token: 0x020001FD RID: 509
|
|
public class Authorization
|
|
{
|
|
/// <summary>Creates a new instance of the <see cref="T:System.Net.Authorization" /> class with the specified authorization message.</summary>
|
|
/// <param name="token">The encrypted authorization message expected by the server. </param>
|
|
// Token: 0x0600113F RID: 4415 RVA: 0x0003267C File Offset: 0x0003087C
|
|
public Authorization(string token)
|
|
: this(token, true)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates a new instance of the <see cref="T:System.Net.Authorization" /> class with the specified authorization message and completion status.</summary>
|
|
/// <param name="token">The encrypted authorization message expected by the server. </param>
|
|
/// <param name="finished">The completion status of the authorization attempt. true if the authorization attempt is complete; otherwise, false. </param>
|
|
// Token: 0x06001140 RID: 4416 RVA: 0x00032688 File Offset: 0x00030888
|
|
public Authorization(string token, bool complete)
|
|
: this(token, complete, null)
|
|
{
|
|
}
|
|
|
|
/// <summary>Creates a new instance of the <see cref="T:System.Net.Authorization" /> class with the specified authorization message, completion status, and connection group identifier.</summary>
|
|
/// <param name="token">The encrypted authorization message expected by the server. </param>
|
|
/// <param name="finished">The completion status of the authorization attempt. true if the authorization attempt is complete; otherwise, false. </param>
|
|
/// <param name="connectionGroupId">A unique identifier that can be used to create private client-server connections that are bound only to this authentication scheme. </param>
|
|
// Token: 0x06001141 RID: 4417 RVA: 0x00032694 File Offset: 0x00030894
|
|
public Authorization(string token, bool complete, string connectionGroupId)
|
|
{
|
|
this.token = token;
|
|
this.complete = complete;
|
|
this.connectionGroupId = connectionGroupId;
|
|
}
|
|
|
|
/// <summary>Gets the message returned to the server in response to an authentication challenge.</summary>
|
|
/// <returns>The message that will be returned to the server in response to an authentication challenge.</returns>
|
|
// Token: 0x170005AD RID: 1453
|
|
// (get) Token: 0x06001142 RID: 4418 RVA: 0x000326B4 File Offset: 0x000308B4
|
|
public string Message
|
|
{
|
|
get
|
|
{
|
|
return this.token;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the completion status of the authorization.</summary>
|
|
/// <returns>true if the authentication process is complete; otherwise, false.</returns>
|
|
// Token: 0x170005AE RID: 1454
|
|
// (get) Token: 0x06001143 RID: 4419 RVA: 0x000326BC File Offset: 0x000308BC
|
|
public bool Complete
|
|
{
|
|
get
|
|
{
|
|
return this.complete;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a unique identifier for user-specific connections.</summary>
|
|
/// <returns>A unique string that associates a connection with an authenticating entity.</returns>
|
|
// Token: 0x170005AF RID: 1455
|
|
// (get) Token: 0x06001144 RID: 4420 RVA: 0x000326C4 File Offset: 0x000308C4
|
|
public string ConnectionGroupId
|
|
{
|
|
get
|
|
{
|
|
return this.connectionGroupId;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the prefix for Uniform Resource Identifiers (URIs) that can be authenticated with the <see cref="P:System.Net.Authorization.Message" /> property.</summary>
|
|
/// <returns>An array of strings that contains URI prefixes.</returns>
|
|
// Token: 0x170005B0 RID: 1456
|
|
// (get) Token: 0x06001145 RID: 4421 RVA: 0x000326CC File Offset: 0x000308CC
|
|
// (set) Token: 0x06001146 RID: 4422 RVA: 0x000326D4 File Offset: 0x000308D4
|
|
public string[] ProtectionRealm
|
|
{
|
|
get
|
|
{
|
|
return this.protectionRealm;
|
|
}
|
|
set
|
|
{
|
|
this.protectionRealm = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170005B1 RID: 1457
|
|
// (get) Token: 0x06001147 RID: 4423 RVA: 0x000326E0 File Offset: 0x000308E0
|
|
// (set) Token: 0x06001148 RID: 4424 RVA: 0x000326E8 File Offset: 0x000308E8
|
|
internal IAuthenticationModule Module
|
|
{
|
|
get
|
|
{
|
|
return this.module;
|
|
}
|
|
set
|
|
{
|
|
this.module = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001149 RID: 4425 RVA: 0x000326F4 File Offset: 0x000308F4
|
|
private static Exception GetMustImplement()
|
|
{
|
|
return new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value that indicates whether mutual authentication occurred.</summary>
|
|
/// <returns>true if both client and server were authenticated; otherwise, false.</returns>
|
|
// Token: 0x170005B2 RID: 1458
|
|
// (get) Token: 0x0600114A RID: 4426 RVA: 0x000326FC File Offset: 0x000308FC
|
|
// (set) Token: 0x0600114B RID: 4427 RVA: 0x00032704 File Offset: 0x00030904
|
|
[global::System.MonoTODO]
|
|
public bool MutuallyAuthenticated
|
|
{
|
|
get
|
|
{
|
|
throw Authorization.GetMustImplement();
|
|
}
|
|
set
|
|
{
|
|
throw Authorization.GetMustImplement();
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000F55 RID: 3925
|
|
private string token;
|
|
|
|
// Token: 0x04000F56 RID: 3926
|
|
private bool complete;
|
|
|
|
// Token: 0x04000F57 RID: 3927
|
|
private string connectionGroupId;
|
|
|
|
// Token: 0x04000F58 RID: 3928
|
|
private string[] protectionRealm;
|
|
|
|
// Token: 0x04000F59 RID: 3929
|
|
private IAuthenticationModule module;
|
|
}
|
|
}
|