Class PublicAppTokenProviderBase
- java.lang.Object
-
- com.microsoft.azure.kusto.data.auth.TokenProviderBase
-
- com.microsoft.azure.kusto.data.auth.CloudDependentTokenProviderBase
-
- com.microsoft.azure.kusto.data.auth.MsalTokenProviderBase
-
- com.microsoft.azure.kusto.data.auth.PublicAppTokenProviderBase
-
- Direct Known Subclasses:
DeviceAuthTokenProvider,UserPromptTokenProvider
public abstract class PublicAppTokenProviderBase extends MsalTokenProviderBase
-
-
Field Summary
Fields Modifier and Type Field Description protected StringclientAppIdprotected com.microsoft.aad.msal4j.IPublicClientApplicationclientApplication-
Fields inherited from class com.microsoft.azure.kusto.data.auth.MsalTokenProviderBase
aadAuthorityUrl, ERROR_ACQUIRING_APPLICATION_ACCESS_TOKEN, ERROR_INVALID_AUTHORITY_URL, ORGANIZATION_URI_SUFFIX, TIMEOUT_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 Concrete Methods Modifier and Type Method Description protected com.microsoft.aad.msal4j.IAuthenticationResultacquireAccessTokenSilentlyMsal()protected voidinitializeWithCloudInfo(CloudInfo cloudInfo)-
Methods inherited from class com.microsoft.azure.kusto.data.auth.MsalTokenProviderBase
acquireAccessTokenImpl, acquireAccessTokenSilently, acquireNewAccessToken
-
Methods inherited from class com.microsoft.azure.kusto.data.auth.CloudDependentTokenProviderBase
acquireAccessToken
-
-
-
-
Field Detail
-
clientApplication
protected com.microsoft.aad.msal4j.IPublicClientApplication clientApplication
-
clientAppId
protected String clientAppId
-
-
Method Detail
-
initializeWithCloudInfo
protected void initializeWithCloudInfo(CloudInfo cloudInfo) throws DataClientException, DataServiceException
- Overrides:
initializeWithCloudInfoin classMsalTokenProviderBase- Throws:
DataClientExceptionDataServiceException
-
acquireAccessTokenSilentlyMsal
protected com.microsoft.aad.msal4j.IAuthenticationResult acquireAccessTokenSilentlyMsal() throws MalformedURLException, InterruptedException, ExecutionException, TimeoutException- Specified by:
acquireAccessTokenSilentlyMsalin classMsalTokenProviderBase- Throws:
MalformedURLExceptionInterruptedExceptionExecutionExceptionTimeoutException
-
-