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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken
(String clientSecret, String clientId, String clientTenant) Retrieves the access token for a given email account
-
Constructor Details
-
Microsoft365TokenProvider
public Microsoft365TokenProvider()
-
-
Method Details
-
getAccessToken
public String getAccessToken(String clientSecret, String clientId, String clientTenant) throws IOException Description copied from interface:TokenProvider
Retrieves the access token for a given email account- Specified by:
getAccessToken
in interfaceTokenProvider
- Parameters:
clientSecret
- the client SecretclientId
- the client IDclientTenant
- the client Tenant- Returns:
- The access token
- Throws:
IOException
- Error retrieving the token
-