prmoore77 commented on code in PR #38461:
URL: https://github.com/apache/arrow/pull/38461#discussion_r1373945638
##########
java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightServer.java:
##########
@@ -317,6 +340,15 @@ public Builder useTls(final File certChain, final File
key) throws IOException {
return this;
}
+ /**
+ * Enable Client Verification via mTLS on the server.
+ * @param mTlsCACert The CA certificate to use for verifying clients.
+ */
+ public Builder useMTlsClientVerification(final File mTlsCACert) throws
IOException {
+ this.mTlsCACert = new FileInputStream(mTlsCACert);
Review Comment:
Hey @jduo - I'm not a very good Java developer - but I'm learning (thanks
for your patience). Would it be like this?
```java
public Builder useMTlsClientVerification(final File mTlsCACert) throws
IOException {
if (this.mTlsCACert != null) {
this.mTlsCACert.close();
}
this.mTlsCACert = new FileInputStream(mTlsCACert);
```
Thanks for your help!
--
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]