| java.lang.Object | |
| ↳ | com.google.code.oauth.OAuth2Authenticator |
Performs OAuth2 authentication.
Before using this class, you must call initialize to install the
OAuth2 SASL provider.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Connects and authenticates to an IMAP server with OAuth2.
| |||||||||||
Connects and authenticates to an SMTP server with OAuth2.
| |||||||||||
Installs the OAuth2 SASL provider.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Connects and authenticates to an IMAP server with OAuth2. You must have called initialize.
| userEmail | Email address of the user to authenticate, for example oauth@gmail.com. |
|---|---|
| oauthToken | The user's OAuth token. |
| MessagingException |
|---|
Connects and authenticates to an SMTP server with OAuth2. You must have
called initialize.
| host | Hostname of the smtp server, for example smtp.googlemail.com. |
|---|---|
| port | Port of the smtp server, for example 587. |
| userEmail | Email address of the user to authenticate, for example
oauth@gmail.com. |
| oauthToken | The user's OAuth token. |
| debug | Whether to enable debug logging on the connection. |
| Exception |
|---|
Installs the OAuth2 SASL provider. This must be called exactly once before calling other methods on this class.