public class TokenSourceCredentialsProvider extends Object implements CredentialsProvider
The provider validates token availability during configuration and creates. appropriate authorization headers for API requests.
| Constructor and Description |
|---|
TokenSourceCredentialsProvider(TokenSource tokenSource,
String authType)
Creates a new TokenSourceCredentialsProvider with the specified token source and auth type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
authType()
Returns the authentication type identifier for this credentials provider.
|
OAuthHeaderFactory |
configure(DatabricksConfig config)
Configures the credentials provider and creates a HeaderFactory for generating authentication
headers.
|
public TokenSourceCredentialsProvider(TokenSource tokenSource, String authType)
tokenSource - The token source responsible for token acquisition and management.authType - The authentication type identifier.public OAuthHeaderFactory configure(DatabricksConfig config)
configure in interface CredentialsProviderconfig - The Databricks configuration object.public String authType()
authType in interface CredentialsProviderCopyright © 2025. All rights reserved.