Package com.databricks.sdk.core
Class AzureCliCredentialsProvider
- java.lang.Object
-
- com.databricks.sdk.core.AzureCliCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
,AzureUtils
public class AzureCliCredentialsProvider extends Object implements CredentialsProvider, AzureUtils
-
-
Constructor Summary
Constructors Constructor Description AzureCliCredentialsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authType()
HeaderFactory
configure(DatabricksConfig config)
CliTokenSource
tokenSourceFor(DatabricksConfig config, String resource)
Creates a RefreshableTokenSource for the specified Azure resource.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.databricks.sdk.core.utils.AzureUtils
ensureHostPresent, getWorkspaceFromJsonResponse
-
-
-
-
Field Detail
-
AZURE_CLI
public static final String AZURE_CLI
- See Also:
- Constant Field Values
-
-
Method Detail
-
authType
public String authType()
- Specified by:
authType
in interfaceCredentialsProvider
-
tokenSourceFor
public CliTokenSource tokenSourceFor(DatabricksConfig config, String resource)
Description copied from interface:AzureUtils
Creates a RefreshableTokenSource for the specified Azure resource.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.
- Specified by:
tokenSourceFor
in interfaceAzureUtils
- Parameters:
config
- The DatabricksConfig instance containing the required authentication parameters.resource
- The Azure resource for which OAuth tokens need to be fetched.- Returns:
- A RefreshableTokenSource instance capable of fetching OAuth tokens for the specified Azure resource.
-
configure
public HeaderFactory configure(DatabricksConfig config)
- Specified by:
configure
in interfaceCredentialsProvider
-
-