public class AzureCliCredentialsProvider extends Object implements CredentialsProvider, AzureUtils
Constructor and Description |
---|
AzureCliCredentialsProvider() |
Modifier and Type | Method and Description |
---|---|
String |
authType() |
HeaderFactory |
configure(DatabricksConfig config) |
protected CliTokenSource |
getToken(DatabricksConfig config,
List<String> cmd) |
CliTokenSource |
tokenSourceFor(DatabricksConfig config,
String resource)
Creates a RefreshableTokenSource for the specified Azure resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSpManagementToken, addWorkspaceResourceId, ensureHostPresent, getWorkspaceFromJsonResponse
public static final String AZURE_CLI
public String authType()
authType
in interface CredentialsProvider
public CliTokenSource tokenSourceFor(DatabricksConfig config, String resource)
AzureUtils
This 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 AzureUtils
config
- The DatabricksConfig instance containing the required authentication parameters.resource
- The Azure resource for which OAuth tokens need to be fetched.protected CliTokenSource getToken(DatabricksConfig config, List<String> cmd)
public HeaderFactory configure(DatabricksConfig config)
configure
in interface CredentialsProvider
Copyright © 2023. All rights reserved.