Package com.databricks.sdk.core.oauth
Class ClientCredentials
- java.lang.Object
-
- com.databricks.sdk.core.oauth.RefreshableTokenSource
-
- com.databricks.sdk.core.oauth.ClientCredentials
-
- All Implemented Interfaces:
TokenSource
public class ClientCredentials extends RefreshableTokenSource
An implementation of RefreshableTokenSource implementing the client_credentials OAuth grant type.Using the provided client ID, secret, and token URL, this class makes requests using its HttpClient to fetch OAuth tokens. Additional parameters and scopes can be specified as well. To support all OAuth endpoints, authentication parameters can be passed in the request body or in the Authorization header.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientCredentials.Builder
-
Field Summary
-
Fields inherited from class com.databricks.sdk.core.oauth.RefreshableTokenSource
token
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Token
refresh()
-
Methods inherited from class com.databricks.sdk.core.oauth.RefreshableTokenSource
getToken, retrieveToken
-
-
-
-
Method Detail
-
refresh
protected Token refresh()
- Specified by:
refresh
in classRefreshableTokenSource
-
-