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


##########
clients/client-java/src/main/java/org/apache/gravitino/client/KerberosTokenProvider.java:
##########
@@ -155,6 +135,68 @@ void setHost(String host) {
     this.host = host;
   }
 
+  private interface SubjectProvider {
+    Subject get() throws LoginException;
+
+    void close() throws LoginException;
+  }
+

Review Comment:
   The Flink has logined using keytab and principal. We should reuse the 
credential created by Flink. If the framework maintain the credential. The 
client won't need to maintain the credential. We don't need to login again. 
   ExistingSubjectProvider is used for reusing the framework's credential.
   LoginSubjectProvider will use keytab and principal to login, generate 
credentail.



-- 
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