public class SessionCredentials extends RefreshableTokenSource 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.
token
Modifier and Type | Method and Description |
---|---|
String |
authType() |
HeaderFactory |
configure(DatabricksConfig config) |
protected Token |
refresh() |
getToken, retrieveToken
public String authType()
authType
in interface CredentialsProvider
public HeaderFactory configure(DatabricksConfig config)
configure
in interface CredentialsProvider
protected Token refresh()
refresh
in class RefreshableTokenSource
Copyright © 2024. All rights reserved.