terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
DigestClient.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Collections
;
3
4
namespace
System.Net
5
{
6
// Token: 0x0200023A RID: 570
7
internal
class
DigestClient
:
IAuthenticationModule
8
{
9
// Token: 0x170002FF RID: 767
10
// (get) Token: 0x06000E44 RID: 3652 RVA: 0x0002D810 File Offset: 0x0002BA10
11
private
static
Hashtable
Cache
12
{
13
get
14
{
15
if
(!
true
)
16
{
17
}
18
if
(!
true
)
19
{
20
}
21
DigestClient
.
CheckExpired
(1);
22
long
num = 0
L
;
23
if
(
true
)
24
{
25
}
26
if
(num == 0
L
)
27
{
28
if
(!
true
)
29
{
30
}
31
return
1;
32
}
33
throw
new
OutOfMemoryException
();
34
}
35
}
36
37
// Token: 0x06000E45 RID: 3653 RVA: 0x0002D84C File Offset: 0x0002BA4C
38
private
static
void
CheckExpired
(
int
count
)
39
{
40
if
(!
true
)
41
{
42
}
43
DateTime
utcNow
=
DateTime
.
UtcNow
;
44
}
45
46
// Token: 0x06000E46 RID: 3654 RVA: 0x0002D8E4 File Offset: 0x0002BAE4
47
public
Authorization
Authenticate
(
string
challenge
,
WebRequest
webRequest
,
ICredentials
credentials)
48
{
49
if
(
challenge
!=
null
&& credentials !=
null
)
50
{
51
int
num =
challenge
.Trim().ToLower().IndexOf(
"digest"
);
52
if
(
webRequest
!=
null
)
53
{
54
}
55
}
56
if
(
DigestClient
.
Cache
!=
null
)
57
{
58
}
59
Hashtable
hashtable
=
DigestClient
.
Cache
;
60
Authorization
authorization
;
61
return
authorization
;
62
}
63
64
// Token: 0x06000E47 RID: 3655 RVA: 0x0002D928 File Offset: 0x0002BB28
65
public
Authorization
PreAuthenticate
(
WebRequest
webRequest
,
ICredentials
credentials)
66
{
67
do
68
{
69
if
(
webRequest
!=
null
)
70
{
71
}
72
while
(credentials ==
null
)
73
{
74
}
75
}
76
while
(
DigestClient
.
Cache
==
null
);
77
Authorization
authorization
;
78
return
authorization
;
79
}
80
81
// Token: 0x17000300 RID: 768
82
// (get) Token: 0x06000E48 RID: 3656 RVA: 0x0002D94C File Offset: 0x0002BB4C
83
public
string
AuthenticationType
84
{
85
get
86
{
87
return
"Digest"
;
88
}
89
}
90
91
// Token: 0x17000301 RID: 769
92
// (get) Token: 0x06000E49 RID: 3657 RVA: 0x0002D960 File Offset: 0x0002BB60
93
public
bool
CanPreAuthenticate
94
{
95
get
96
{
97
return
true
;
98
}
99
}
100
101
// Token: 0x06000E4A RID: 3658 RVA: 0x0002D970 File Offset: 0x0002BB70
102
public
DigestClient
()
103
{
104
}
105
106
// Token: 0x06000E4B RID: 3659 RVA: 0x0002D984 File Offset: 0x0002BB84
107
// Note: this type is marked as 'beforefieldinit'.
108
static
DigestClient
()
109
{
110
}
111
112
// Token: 0x04000BD7 RID: 3031
113
private
static
readonly
Hashtable
cache
;
114
}
115
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.Collections.Hashtable
Definition
Hashtable.cs:17
System.Net.Authorization
Definition
Authorization.cs:7
System.Net.DigestClient.cache
static readonly Hashtable cache
Definition
DigestClient.cs:113
System.Net.DigestClient.Cache
static Hashtable Cache
Definition
DigestClient.cs:12
System.Net.DigestClient.CheckExpired
static void CheckExpired(int count)
Definition
DigestClient.cs:38
System.Net.DigestClient.DigestClient
DigestClient()
Definition
DigestClient.cs:102
System.Net.DigestClient.PreAuthenticate
Authorization PreAuthenticate(WebRequest webRequest, ICredentials credentials)
Definition
DigestClient.cs:65
System.Net.DigestClient.Authenticate
Authorization Authenticate(string challenge, WebRequest webRequest, ICredentials credentials)
Definition
DigestClient.cs:47
System.Net.DigestClient.DigestClient
static DigestClient()
Definition
DigestClient.cs:108
System.Net.DigestClient.AuthenticationType
string AuthenticationType
Definition
DigestClient.cs:84
System.Net.DigestClient.CanPreAuthenticate
bool CanPreAuthenticate
Definition
DigestClient.cs:94
System.Net.DigestClient
Definition
DigestClient.cs:8
System.Net.WebRequest
Definition
WebRequest.cs:20
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
System.Net.IAuthenticationModule
Definition
IAuthenticationModule.cs:7
System.Net.ICredentials
Definition
ICredentials.cs:7
System.Collections
Definition
ArrayList.cs:6
System.Net
Definition
AuthenticationManager.cs:7
System.ExceptionArgument.count
@ count
System.ConsoleKey.L
@ L
System
Definition
__ComObject.cs:4
System.DateTime.UtcNow
static DateTime UtcNow
Definition
DateTime.cs:1318
System.DateTime
Definition
DateTime.cs:13
source
System
Net
DigestClient.cs
Generated by
1.10.0