Class AzureCliCredentialsProvider

    • Constructor Detail

      • AzureCliCredentialsProvider

        public AzureCliCredentialsProvider()
    • Method Detail

      • 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 interface AzureUtils
        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.