com.microsoft.azure.kusto.data.auth.AzureCliTokenProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kusto-data Show documentation
Show all versions of kusto-data Show documentation
Kusto client library for executing queries and retrieving data
package com.microsoft.azure.kusto.data.auth;
import com.azure.core.credential.TokenCredential;
import com.azure.core.http.HttpClient;
import com.azure.identity.AzureCliCredentialBuilder;
import com.azure.identity.CredentialBuilderBase;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.net.URISyntaxException;
public class AzureCliTokenProvider extends AzureIdentityTokenProvider {
public AzureCliTokenProvider(@NotNull String clusterUrl, @Nullable HttpClient httpClient) throws URISyntaxException {
super(clusterUrl, httpClient);
}
@Override
protected CredentialBuilderBase> initBuilder() {
return new AzureCliCredentialBuilder();
}
@Override
protected TokenCredential createTokenCredential(CredentialBuilderBase> builder) {
return ((AzureCliCredentialBuilder) builder).build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy