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 Summary
Modifier and TypeMethodDescriptiongetAccessToken
(String clientSecret, String clientId, String clientTenant) Retrieves the access token for a given email account
-
Method Details
-
getAccessToken
Retrieves the access token for a given email account- Parameters:
clientSecret
- the client SecretclientId
- the client IDclientTenant
- the client Tenant- Returns:
- The access token
- Throws:
IOException
- Error retrieving the token
-