public static class GravitinoClient.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
GravitinoClient |
build()
Builds a new GravitinoClient instance.
|
GravitinoClient.Builder |
withKerberosAuth(KerberosTokenProvider dataProvider)
Sets KerberosTokenProvider for the GravitinoClient.
|
GravitinoClient.Builder |
withOAuth(OAuth2TokenProvider dataProvider)
Sets OAuth2TokenProvider for the GravitinoClient.
|
GravitinoClient.Builder |
withSimpleAuth()
Sets the simple mode authentication for Gravitino
|
public GravitinoClient.Builder withSimpleAuth()
public GravitinoClient.Builder withOAuth(OAuth2TokenProvider dataProvider)
dataProvider
- The OAuth2TokenProvider used as the provider of authentication data for
GravitinoClient.public GravitinoClient.Builder withKerberosAuth(KerberosTokenProvider dataProvider)
dataProvider
- The KerberosTokenProvider used as the provider of authentication data for
GravitinoClient.public GravitinoClient build()
java.lang.IllegalArgumentException
- If the base URI is null or empty.