com.microsoft.azure.kusto.data.auth.AccessTokenTokenProvider 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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package com.microsoft.azure.kusto.data.auth;
import java.net.URISyntaxException;
import org.jetbrains.annotations.NotNull;
import reactor.core.publisher.Mono;
public class AccessTokenTokenProvider extends TokenProviderBase {
private final String accessToken;
AccessTokenTokenProvider(@NotNull String clusterUrl, @NotNull String accessToken) throws URISyntaxException {
super(clusterUrl, null);
this.accessToken = accessToken;
}
@Override
protected Mono acquireAccessTokenImpl() {
return Mono.just(accessToken);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy