public class DatabricksOAuthTokenSource extends Object implements TokenSource
| Modifier and Type | Class and Description |
|---|---|
static class |
DatabricksOAuthTokenSource.Builder
Builder class for constructing DatabricksOAuthTokenSource instances.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
getToken()
Retrieves an OAuth token by exchanging an ID token.
|
public Token getToken()
getToken in interface TokenSourceDatabricksException - when the token exchange fails.IllegalArgumentException - when the host is empty.NullPointerException - when any of the required parameters (host, endpoints,
idTokenSource, httpClient) are null. The client ID is optional.Copyright © 2026. All rights reserved.