Interface OAuth2AccessTokenProvider
-
- All Known Implementing Classes:
ClientCredentialsAccessTokenProvider
public interface OAuth2AccessTokenProvider
A plug-in interface forMailEventSource
as a customisable way to provide an OAuth2 access token that can be used to access a mailbox via the "XOAUTH2" authentication mechanism.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAccessToken()
Gets an OAuth2 access token for accessing the mailbox.
-
-
-
Method Detail
-
getAccessToken
String getAccessToken() throws javax.mail.MessagingException
Gets an OAuth2 access token for accessing the mailbox.- Returns:
- An OAuth2 access token for accessing the mailbox
- Throws:
javax.mail.MessagingException
- If there are problems retrieving the access token, aMessagingException
will be thrown.
-
-