Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SmtpLoginAuthenticationModule.cs
Go to the documentation of this file.
3using System.Text;
4
5namespace System.Net.Mail;
6
8{
10
11 public string AuthenticationType => "login";
12
14 {
15 }
16
18 {
20 {
22 {
24 {
25 return null;
26 }
28 string text = credential.UserName;
29 string domain = credential.Domain;
30 if (domain != null && domain.Length > 0)
31 {
32 text = domain + "\\" + text;
33 }
34 return new Authorization(Convert.ToBase64String(Encoding.UTF8.GetBytes(text)), finished: false);
35 }
37 return new Authorization(Convert.ToBase64String(Encoding.UTF8.GetBytes(value.Password)), finished: true);
38 }
39 }
40
41 public void CloseContext(object sessionCookie)
42 {
43 }
44}
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
static string ToBase64String(byte[] inArray)
Definition Convert.cs:2675
static NetworkCredential DefaultNetworkCredentials
readonly Dictionary< object, NetworkCredential > _sessions
Authorization Authenticate(string challenge, NetworkCredential credential, object sessionCookie, string spn, ChannelBinding channelBindingToken)
static Encoding UTF8
Definition Encoding.cs:526