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
BasicClient.cs
Go to the documentation of this file.
1
using
System
;
2
using
Cpp2IlInjected
;
3
4
namespace
System.Net
5
{
6
// Token: 0x0200022E RID: 558
7
internal
class
BasicClient
:
IAuthenticationModule
8
{
9
// Token: 0x06000E0A RID: 3594 RVA: 0x0002CBC8 File Offset: 0x0002ADC8
10
public
Authorization
Authenticate
(
string
challenge
,
WebRequest
webRequest
,
ICredentials
credentials)
11
{
12
if
(
challenge
!=
null
&& credentials !=
null
)
13
{
14
int
num =
challenge
.Trim().ToLower().IndexOf(
"basic"
,
StringComparison
.Ordinal);
15
return
BasicClient
.
InternalAuthenticate
(
webRequest
, credentials);
16
}
17
}
18
19
// Token: 0x06000E0B RID: 3595 RVA: 0x00002050 File Offset: 0x00000250
20
private
static
byte
[]
GetBytes
(
string
str)
21
{
22
throw
new
global::Cpp2IlInjected.AnalysisFailedException(
"CPP2IL failed to recover any usable IL for this method."
);
23
}
24
25
// Token: 0x06000E0C RID: 3596 RVA: 0x0002CBFC File Offset: 0x0002ADFC
26
private
static
Authorization
InternalAuthenticate
(
WebRequest
webRequest
,
ICredentials
credentials)
27
{
28
while
(
webRequest
==
null
)
29
{
30
}
31
while
(
webRequest
==
null
)
32
{
33
}
34
string
text
;
35
while
(
text
==
null
)
36
{
37
}
38
bool
flag =
text
==
""
;
39
string
text2;
40
if
(text2 !=
null
)
41
{
42
bool
flag2
= text2 ==
""
;
43
bool
flag3
= text2.Trim() ==
""
;
44
}
45
string
text4
;
46
string
text3
=
Convert
.
ToBase64String
(
BasicClient
.
GetBytes
(
text
+
":"
+
text4
));
47
string
text5
=
"Basic "
+
text3
;
48
if
(text2 ==
null
|| (
"\\"
!=
null
&&
"\\"
==
null
) || (
":"
!=
null
&&
":"
==
null
) ||
text5
==
null
||
text5
!=
null
)
49
{
50
}
51
throw
new
ArrayTypeMismatchException
();
52
}
53
54
// Token: 0x06000E0D RID: 3597 RVA: 0x0002CC9C File Offset: 0x0002AE9C
55
public
Authorization
PreAuthenticate
(
WebRequest
webRequest
,
ICredentials
credentials)
56
{
57
return
BasicClient
.
InternalAuthenticate
(
webRequest
, credentials);
58
}
59
60
// Token: 0x170002EF RID: 751
61
// (get) Token: 0x06000E0E RID: 3598 RVA: 0x0002CCB0 File Offset: 0x0002AEB0
62
public
string
AuthenticationType
63
{
64
get
65
{
66
return
"Basic"
;
67
}
68
}
69
70
// Token: 0x170002F0 RID: 752
71
// (get) Token: 0x06000E0F RID: 3599 RVA: 0x0002CCC4 File Offset: 0x0002AEC4
72
public
bool
CanPreAuthenticate
73
{
74
get
75
{
76
return
true
;
77
}
78
}
79
80
// Token: 0x06000E10 RID: 3600 RVA: 0x0002CCD4 File Offset: 0x0002AED4
81
public
BasicClient
()
82
{
83
}
84
}
85
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Convert.ToBase64String
static string ToBase64String(byte[] inArray)
Definition
Convert.cs:2645
System.Convert
Definition
Convert.cs:11
System.Net.Authorization
Definition
Authorization.cs:7
System.Net.BasicClient.PreAuthenticate
Authorization PreAuthenticate(WebRequest webRequest, ICredentials credentials)
Definition
BasicClient.cs:55
System.Net.BasicClient.Authenticate
Authorization Authenticate(string challenge, WebRequest webRequest, ICredentials credentials)
Definition
BasicClient.cs:10
System.Net.BasicClient.GetBytes
static byte[] GetBytes(string str)
Definition
BasicClient.cs:20
System.Net.BasicClient.BasicClient
BasicClient()
Definition
BasicClient.cs:81
System.Net.BasicClient.InternalAuthenticate
static Authorization InternalAuthenticate(WebRequest webRequest, ICredentials credentials)
Definition
BasicClient.cs:26
System.Net.BasicClient.AuthenticationType
string AuthenticationType
Definition
BasicClient.cs:63
System.Net.BasicClient.CanPreAuthenticate
bool CanPreAuthenticate
Definition
BasicClient.cs:73
System.Net.BasicClient
Definition
BasicClient.cs:8
System.Net.WebRequest
Definition
WebRequest.cs:20
System.Net.IAuthenticationModule
Definition
IAuthenticationModule.cs:7
System.Net.ICredentials
Definition
ICredentials.cs:7
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Net
Definition
AuthenticationManager.cs:7
System.ExceptionArgument.text
@ text
System.StringComparison
StringComparison
Definition
StringComparison.cs:7
System
Definition
__ComObject.cs:4
source
System
Net
BasicClient.cs
Generated by
1.10.0