jerqi commented on code in PR #3866:
URL: https://github.com/apache/gravitino/pull/3866#discussion_r1694275616


##########
clients/client-java/src/main/java/com/datastrato/gravitino/client/GravitinoClientBase.java:
##########
@@ -218,6 +218,17 @@ public Builder<T> withSimpleAuth() {
       return this;
     }
 
+    /**
+     * Sets the simple mode authentication for Gravitino with a specific 
username
+     *
+     * @param userName The username of the user.
+     * @return This Builder instance for method chaining.
+     */
+    public Builder<T> withSimpleAuth(String userName) {
+      this.authDataProvider = new SimpleTokenProvider(userName);

Review Comment:
   For builder pattern, we usually check them in the build method.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to