public class SessionCredentials extends Object implements CredentialsProvider, Serializable
SessionCredentials are OAuth credentials with a short-lived access token, used to make requests to an API, and a long-lived refresh token, which can be used to fetch new access tokens. Calling refresh() uses the refresh token to retrieve a new access token to authenticate to APIs.
| Modifier and Type | Method and Description |
|---|---|
String |
authType()
Returns the authentication type identifier for this credentials provider.
|
OAuthHeaderFactory |
configure(DatabricksConfig config)
Creates and returns a new HeaderFactory to authenticate requests to the Databricks API.
|
public String authType()
CredentialsProviderauthType in interface CredentialsProviderpublic OAuthHeaderFactory configure(DatabricksConfig config)
CredentialsProviderNote: A new HeaderFactory instance is returned on each invocation.
configure in interface CredentialsProviderconfig - the Databricks configuration to use for authenticationCopyright © 2025. All rights reserved.