Interface OAuth2AccessTokenProvider
-
- All Known Implementing Classes:
ClientCredentialsAccessTokenProvider
public interface OAuth2AccessTokenProviderA plug-in interface forMailEventSourceas 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 StringgetAccessToken()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, aMessagingExceptionwill be thrown.
-
-