| Package | Description |
|---|---|
| com.databricks.sdk.core | |
| com.databricks.sdk.core.oauth |
| Modifier and Type | Method and Description |
|---|---|
Token |
CliTokenSource.getToken() |
| Modifier and Type | Field and Description |
|---|---|
protected Token |
CachedTokenSource.token |
| Modifier and Type | Method and Description |
|---|---|
Token |
CachedTokenSource.getToken()
Gets the current token, refreshing if necessary.
|
Token |
ClientCredentials.getToken() |
Token |
SessionCredentialsTokenSource.getToken()
Refreshes the OAuth token using the refresh_token grant type.
|
Token |
DatabricksOAuthTokenSource.getToken()
Retrieves an OAuth token by exchanging an ID token.
|
Token |
EndpointTokenSource.getToken()
Fetches an endpoint-specific dataplane token by exchanging a control plane token.
|
Token |
ErrorTokenSource.getToken()
Always throws a DatabricksException with the configured error message.
|
Token |
TokenSource.getToken() |
Token |
DataPlaneTokenSource.getToken(String endpoint,
String authDetails)
Retrieves a token for the specified endpoint and authorization details.
|
protected Token |
CachedTokenSource.getTokenAsync()
Get the current token, possibly triggering an async refresh if stale.
|
protected Token |
CachedTokenSource.getTokenBlocking()
Get the current token, blocking to refresh if expired.
|
Token |
TokenCache.load()
Loads a Token from the cache.
|
Token |
FileTokenCache.load() |
static Token |
TokenEndpointClient.retrieveToken(HttpClient hc,
String clientId,
String clientSecret,
String tokenUrl,
Map<String,String> params,
Map<String,String> headers,
AuthParameterPosition position)
Helper method implementing OAuth token refresh.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.databricks.sdk.core.oauth.CachedTokenSource.TokenState |
CachedTokenSource.getTokenState(Token t)
Determine the state of the current token (fresh, stale, or expired).
|
void |
TokenCache.save(Token token)
Saves a Token to the cache.
|
void |
FileTokenCache.save(Token token) |
CachedTokenSource.Builder |
CachedTokenSource.Builder.setToken(Token token)
Sets an initial token to use in the cache.
|
| Modifier and Type | Method and Description |
|---|---|
static OAuthHeaderFactory |
OAuthHeaderFactory.fromSuppliers(Supplier<Token> tokenSupplier,
Supplier<Map<String,String>> headerSupplier)
Creates an OAuthHeaderFactory from separate token and header suppliers.
|
| Constructor and Description |
|---|
SessionCredentialsTokenSource(Token token,
HttpClient hc,
String tokenUrl,
String clientId,
String clientSecret,
Optional<String> redirectUrl,
Optional<TokenCache> tokenCache)
Constructs a new SessionCredentialsTokenSource.
|
Copyright © 2026. All rights reserved.