public static class DatabricksOAuthTokenSource.Builder extends Object
| Constructor and Description |
|---|
Builder(String clientId,
String host,
OpenIDConnectEndpoints endpoints,
IDTokenSource idTokenSource,
HttpClient httpClient)
Creates a new Builder with required parameters.
|
| Modifier and Type | Method and Description |
|---|---|
DatabricksOAuthTokenSource.Builder |
accountId(String accountId)
Sets the Databricks account ID.
|
DatabricksOAuthTokenSource.Builder |
audience(String audience)
Sets a custom audience value for token exchange.
|
DatabricksOAuthTokenSource |
build()
Builds a new DatabricksOAuthTokenSource instance.
|
public Builder(String clientId, String host, OpenIDConnectEndpoints endpoints, IDTokenSource idTokenSource, HttpClient httpClient)
clientId - OAuth client ID.host - Databricks host URL.endpoints - OpenID Connect endpoints configuration.idTokenSource - Source of ID tokens.httpClient - HTTP client for making requests.public DatabricksOAuthTokenSource.Builder accountId(String accountId)
accountId - The account ID.public DatabricksOAuthTokenSource.Builder audience(String audience)
audience - The audience valuepublic DatabricksOAuthTokenSource build()
Copyright © 2025. All rights reserved.