Package com.databricks.sdk.core.oauth
Class OAuthM2MServicePrincipalCredentialsProvider
- java.lang.Object
-
- com.databricks.sdk.core.oauth.OAuthM2MServicePrincipalCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
public class OAuthM2MServicePrincipalCredentialsProvider extends Object implements CredentialsProvider
Adds refreshed Databricks machine-to-machine OAuth Bearer token to every request, if /oidc/.well-known/oauth-authorization-server is available on the given host.
-
-
Constructor Summary
Constructors Constructor Description OAuthM2MServicePrincipalCredentialsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authType()
HeaderFactory
configure(DatabricksConfig config)
-
-
-
Method Detail
-
authType
public String authType()
- Specified by:
authType
in interfaceCredentialsProvider
-
configure
public HeaderFactory configure(DatabricksConfig config)
- Specified by:
configure
in interfaceCredentialsProvider
-
-