public class NotebookNativeCredentialsProvider extends Object implements CredentialsProvider
The token and hostname are read from the command context, which can be retrieved through the dbutils API. As the Java SDK does not depend on DBUtils directly, reflection is used to retrieve the token. This token should be available wherever the DBUtils API is accessible (i.e. in the Spark driver).
Constructor and Description |
---|
NotebookNativeCredentialsProvider() |
Modifier and Type | Method and Description |
---|---|
String |
authType() |
HeaderFactory |
configure(DatabricksConfig config) |
public String authType()
authType
in interface CredentialsProvider
public HeaderFactory configure(DatabricksConfig config)
configure
in interface CredentialsProvider
Copyright © 2024. All rights reserved.