AzureADGraphClient (Azure SDK for Java Reference Documentation)
public class AzureADGraphClient extends Object
Microsoft Graph client encapsulation.
Constructor Summary
Constructor Detail
Method Detail
acquireTokenForGraphApi
public com.microsoft.aad.msal4j.IAuthenticationResult acquireTokenForGraphApi(String idToken, String tenantId) throws ServiceUnavailableException
Acquire access token for calling Graph API.
Parameters:idToken
- The token used to perform an OBO request.tenantId
- The tenant id. Returns: The access token for Graph service. Throws:ServiceUnavailableException
- If fail to acquire the token.com.microsoft.aad.msal4j.MsalServiceException
- IfMsalServiceException
has occurred.
Copyright © 2020 Microsoft Corporation. All rights reserved.
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrnCt2a6pnmWjpb%2BqusZmmainpGSAb3yNaWacp51krrvB0Z5mrKiinruoe8Cuq6ibn6OzqrPUq5xomZGZfILG1Kucenx3p66xtKKloJ6mpGO1tbnL