AuthMechanism Property
The authentication mechanism to be used when connecting to the mail server.
Syntax
ANSI (Cross Platform) int GetAuthMechanism();
int SetAuthMechanism(int iAuthMechanism); Unicode (Windows) INT GetAuthMechanism();
INT SetAuthMechanism(INT iAuthMechanism);
Possible Values
AM_USER_PASSWORD(0),
AM_CRAMMD5(1),
AM_NTLM(2),
AM_APOP(3),
AM_SASLPLAIN(4),
AM_SASLDIGEST_MD5(5),
AM_KERBEROS(6),
AM_XOAUTH2(7)
@property (nonatomic,readwrite,assign,getter=authMechanism,setter=setAuthMechanism:) int authMechanism; - (int)authMechanism; - (void)setAuthMechanism:(int)newAuthMechanism;
Possible Values
AM_USER_PASSWORD(0),
AM_CRAMMD5(1),
AM_NTLM(2),
AM_APOP(3),
AM_SASLPLAIN(4),
AM_SASLDIGEST_MD5(5),
AM_KERBEROS(6),
AM_XOAUTH2(7)
#define PID_IMAP_AUTHMECHANISM 1 IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_IMAP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_IMAP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
Auth Mechanism | Description |
0 (amUserPassword - Default) | A user/password pair is sent in plaintext to login. (Default) |
1 (amCRAMMD5) | CRAM-MD5 authentication. |
2 (amNTLM) | NTLM authentication. |
4 (amSASLPlain) | SASLPlain. Note, that servers will often require SSL be used when this authentication mechanism is requested. See AuthorizationIdentity. |
5 (amSASLDigestMD5) | SASLDigestMD5. See AuthorizationIdentity. |
6 (amKerberos) | Kerberos authentication. This option is available in Windows or other platforms when using the Java edition. |
7 (mXOAUTH) | XOAUTH2 authentication. See AuthorizationIdentity. |
Data Type
Integer