Class MsalTokenProviderBase
- java.lang.Object
-
- com.microsoft.azure.kusto.data.auth.TokenProviderBase
-
- com.microsoft.azure.kusto.data.auth.CloudDependentTokenProviderBase
-
- com.microsoft.azure.kusto.data.auth.MsalTokenProviderBase
-
- Direct Known Subclasses:
ConfidentialAppTokenProviderBase,PublicAppTokenProviderBase
public abstract class MsalTokenProviderBase extends CloudDependentTokenProviderBase
-
-
Field Summary
Fields Modifier and Type Field Description protected StringaadAuthorityUrlprotected static StringERROR_ACQUIRING_APPLICATION_ACCESS_TOKENprotected static StringERROR_INVALID_AUTHORITY_URLprotected static StringORGANIZATION_URI_SUFFIXprotected static intTIMEOUT_MS-
Fields inherited from class com.microsoft.azure.kusto.data.auth.CloudDependentTokenProviderBase
scopes
-
Fields inherited from class com.microsoft.azure.kusto.data.auth.TokenProviderBase
clusterUrl, httpClient, logger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringacquireAccessTokenImpl()protected com.microsoft.aad.msal4j.IAuthenticationResultacquireAccessTokenSilently()protected abstract com.microsoft.aad.msal4j.IAuthenticationResultacquireAccessTokenSilentlyMsal()protected abstract com.microsoft.aad.msal4j.IAuthenticationResultacquireNewAccessToken()protected voidinitializeWithCloudInfo(CloudInfo cloudInfo)-
Methods inherited from class com.microsoft.azure.kusto.data.auth.CloudDependentTokenProviderBase
acquireAccessToken
-
-
-
-
Field Detail
-
ERROR_ACQUIRING_APPLICATION_ACCESS_TOKEN
protected static final String ERROR_ACQUIRING_APPLICATION_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
ORGANIZATION_URI_SUFFIX
protected static final String ORGANIZATION_URI_SUFFIX
- See Also:
- Constant Field Values
-
ERROR_INVALID_AUTHORITY_URL
protected static final String ERROR_INVALID_AUTHORITY_URL
- See Also:
- Constant Field Values
-
TIMEOUT_MS
protected static final int TIMEOUT_MS
- See Also:
- Constant Field Values
-
aadAuthorityUrl
protected String aadAuthorityUrl
-
-
Method Detail
-
initializeWithCloudInfo
protected void initializeWithCloudInfo(CloudInfo cloudInfo) throws DataClientException, DataServiceException
- Overrides:
initializeWithCloudInfoin classCloudDependentTokenProviderBase- Throws:
DataClientExceptionDataServiceException
-
acquireAccessTokenImpl
public String acquireAccessTokenImpl() throws DataServiceException, DataClientException
- Specified by:
acquireAccessTokenImplin classCloudDependentTokenProviderBase- Throws:
DataServiceExceptionDataClientException
-
acquireAccessTokenSilently
protected com.microsoft.aad.msal4j.IAuthenticationResult acquireAccessTokenSilently() throws DataServiceException, DataClientException
-
acquireAccessTokenSilentlyMsal
protected abstract com.microsoft.aad.msal4j.IAuthenticationResult acquireAccessTokenSilentlyMsal() throws MalformedURLException, InterruptedException, ExecutionException, TimeoutException, DataServiceException
-
acquireNewAccessToken
protected abstract com.microsoft.aad.msal4j.IAuthenticationResult acquireNewAccessToken() throws DataServiceException, DataClientException
-
-