Interface TokenProvider
- All Known Implementing Classes:
- Microsoft365TokenProvider
public interface TokenProvider
For connecting to the mail store via IMAP or SMTP using OAuth 2.0
 authentication, one shall first obtain an access token.
- Since:
- 8.9.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Method SummaryModifier and TypeMethodDescriptiongetAccessToken(String clientSecret, String clientId, String clientTenant) Retrieves the access token for a given email account
- 
Method Details- 
getAccessTokenRetrieves the access token for a given email account- Parameters:
- clientSecret- the client Secret
- clientId- the client ID
- clientTenant- the client Tenant
- Returns:
- The access token
- Throws:
- IOException- Error retrieving the token
 
 
-