Package org.apache.gravitino.client
Class KerberosTokenProvider.Builder
java.lang.Object
org.apache.gravitino.client.KerberosTokenProvider.Builder
- Enclosing class:
- KerberosTokenProvider
Builder class for configuring and creating instances of KerberosTokenProvider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the instance of the KerberosTokenProvider.withClientPrincipal(String clientPrincipal) Sets the client principal for the HTTP token requests.withKeyTabFile(File file) Sets the keyTabFile for the HTTP token requests.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withClientPrincipal
Sets the client principal for the HTTP token requests.- Parameters:
clientPrincipal- The client principal for the HTTP token requests.- Returns:
- This Builder instance for method chaining.
-
withKeyTabFile
Sets the keyTabFile for the HTTP token requests.- Parameters:
file- The keyTabFile for the HTTP token requests.- Returns:
- This Builder instance for method chaining.
-
build
Builds the instance of the KerberosTokenProvider.- Returns:
- The built KerberosTokenProvider instance.
-