diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-07-06 16:23:35 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-07-06 16:23:35 -0700 |
commit | 7f27559b18642bea9afe2a42a9b05ee52bdd6ccb (patch) | |
tree | 6c73a2fa9febe00fa0dd952764c07b3ed328ed20 /src/objc/smtp | |
parent | dd0b3c7a22eb957e5f2b9a71a2d3bdb342d62269 (diff) |
Implemented SMTP OAuth 2.0
Diffstat (limited to 'src/objc/smtp')
-rw-r--r-- | src/objc/smtp/MCOSMTPSession.h | 3 | ||||
-rw-r--r-- | src/objc/smtp/MCOSMTPSession.mm | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/objc/smtp/MCOSMTPSession.h b/src/objc/smtp/MCOSMTPSession.h index 44d37942..bb7c5f57 100644 --- a/src/objc/smtp/MCOSMTPSession.h +++ b/src/objc/smtp/MCOSMTPSession.h @@ -39,6 +39,9 @@ /** This is the password of the account. */ @property (nonatomic, copy) NSString * password; +/** This is the OAuth2 token. */ +@property (nonatomic, copy) NSString *OAuth2Token; + /** This is the authentication type to use to connect. `MCOAuthTypeSASLNone` means that it uses the clear-text is used (and is the default). diff --git a/src/objc/smtp/MCOSMTPSession.mm b/src/objc/smtp/MCOSMTPSession.mm index 1cadf4ad..c9f9f0fc 100644 --- a/src/objc/smtp/MCOSMTPSession.mm +++ b/src/objc/smtp/MCOSMTPSession.mm @@ -74,6 +74,7 @@ MCO_OBJC_SYNTHESIZE_STRING(setHostname, hostname) MCO_OBJC_SYNTHESIZE_SCALAR(unsigned int, unsigned int, setPort, port) MCO_OBJC_SYNTHESIZE_STRING(setUsername, username) MCO_OBJC_SYNTHESIZE_STRING(setPassword, password) +MCO_OBJC_SYNTHESIZE_STRING(setOAuth2Token, OAuth2Token) MCO_OBJC_SYNTHESIZE_SCALAR(MCOAuthType, mailcore::AuthType, setAuthType, authType) MCO_OBJC_SYNTHESIZE_SCALAR(MCOConnectionType, mailcore::ConnectionType, setConnectionType, connectionType) MCO_OBJC_SYNTHESIZE_SCALAR(NSTimeInterval, time_t, setTimeout, timeout) |