This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathAuthMethod.cs
63 lines (62 loc) · 1.7 KB
/
AuthMethod.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System;
namespace S22.Imap {
/// <summary>
/// Defines supported means of authenticating with an IMAP server.
/// </summary>
public enum AuthMethod {
/// <summary>
/// Automatically selects the most-secure authentication mechanism supported by the server.
/// </summary>
Auto,
/// <summary>
/// Login using plaintext password authentication; This is supported by most servers.
/// </summary>
Login,
/// <summary>
/// Login using the SASL PLAIN authentication mechanism.
/// </summary>
Plain,
/// <summary>
/// Login using the CRAM-MD5 authentication mechanism.
/// </summary>
CramMd5,
/// <summary>
/// Login using the DIGEST-MD5 authentication mechanism.
/// </summary>
DigestMd5,
/// <summary>
/// Login using OAuth via the SASL XOAuth mechanism.
/// </summary>
OAuth,
/// <summary>
/// Login using OAuth 2.0 via the SASL XOAUTH2 mechanism.
/// </summary>
OAuth2,
/// <summary>
/// Login using the NTLM authentication mechanism.
/// </summary>
Ntlm,
/// <summary>
/// Login using the NTLMv2 authentication mechanism.
/// </summary>
Ntlmv2,
/// <summary>
/// Login using the NTLM/NTLMv2 authentication mechanism via Microsoft's Security Support
/// Provider Interface (SSPI).
/// </summary>
NtlmOverSspi,
/// <summary>
/// Login using Kerberos authentication via the SASL GSSAPI mechanism.
/// </summary>
Gssapi,
/// <summary>
/// Login using the SCRAM-SHA-1 authentication mechanism.
/// </summary>
ScramSha1,
/// <summary>
/// Login using the Secure Remote Password (SRP) authentication mechanism.
/// </summary>
/// <remarks>The SRP mechanism is only available when targeting .NET 4.0 or newer.</remarks>
Srp
}
}