public class AzureCliCredentialsProvider extends Object implements CredentialsProvider, AzureUtils
| Constructor and Description |
|---|
AzureCliCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
authType() |
HeaderFactory |
configure(DatabricksConfig config) |
CliTokenSource |
tokenSourceFor(DatabricksConfig config,
String resource)
Creates a RefreshableTokenSource for the specified Azure resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitensureHostPresent, getWorkspaceFromJsonResponsepublic static final String AZURE_CLI
public String authType()
authType in interface CredentialsProviderpublic CliTokenSource tokenSourceFor(DatabricksConfig config, String resource)
AzureUtilsThis function constructs a RefreshableTokenSource instance that fetches OAuth tokens for the given Azure resource. It uses the authentication parameters provided by the DatabricksConfig instance to generate the tokens.
tokenSourceFor in interface AzureUtilsconfig - The DatabricksConfig instance containing the required authentication parameters.resource - The Azure resource for which OAuth tokens need to be fetched.public HeaderFactory configure(DatabricksConfig config)
configure in interface CredentialsProviderCopyright © 2023. All rights reserved.