Class Microsoft365TokenProvider
java.lang.Object
com.logicaldoc.core.communication.oauth.Microsoft365TokenProvider
- All Implemented Interfaces:
- TokenProvider
A TokenProvider used to access the Exchange Online (Microsoft 365)
- Since:
- 8.9.3
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetAccessToken(String clientSecret, String clientId, String clientTenant) Retrieves the access token for a given email account
- 
Constructor Details- 
Microsoft365TokenProviderpublic Microsoft365TokenProvider()
 
- 
- 
Method Details- 
getAccessTokenpublic String getAccessToken(String clientSecret, String clientId, String clientTenant) throws IOException Description copied from interface:TokenProviderRetrieves the access token for a given email account- Specified by:
- getAccessTokenin interface- TokenProvider
- Parameters:
- clientSecret- the client Secret
- clientId- the client ID
- clientTenant- the client Tenant
- Returns:
- The access token
- Throws:
- IOException- Error retrieving the token
 
 
-