-
Notifications
You must be signed in to change notification settings - Fork 3.9k
util: Align AdvancedTlsX509{Key and Trust}Manager #11385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
erm-g
commented
Jul 12, 2024
•
edited
Loading
edited
- Swap key/cert arguments of internal private classes in KeyManager
- Deprecate *FromFile methods in TrustManager in favor of overloaded updateTrustCredentials
- Unit test for Fix AdvancedTlsX509TrustManager to handle client side validation of socket #11352
@@ -339,8 +339,8 @@ public void onFileReloadingKeyManagerTrustManagerTest() throws Exception { | |||
AdvancedTlsX509TrustManager serverTrustManager = AdvancedTlsX509TrustManager.newBuilder() | |||
.setVerification(Verification.CERTIFICATE_ONLY_VERIFICATION) | |||
.build(); | |||
Closeable serverTrustShutdown = serverTrustManager.updateTrustCredentialsFromFile(caCertFile, | |||
100, TimeUnit.MILLISECONDS, executor); | |||
Closeable serverTrustShutdown = serverTrustManager.updateTrustCredentials(caCertFile,100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a space before 100. Ditto elsewhere.
FWIW, I'll commonly linewrap before the 100, to keep it together with its unit. Although it seems you are purposefully doing the opposite, as late in the file you could have TimeUnit on the same line and you chose not to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Swap internal key/cert args * Deprecate *FromFile methods * Test for client trusted socket