nodece commented on a change in pull request #13740:
URL: https://github.com/apache/pulsar/pull/13740#discussion_r820536092
##########
File path:
pulsar-common/src/main/java/org/apache/pulsar/common/util/SecurityUtility.java
##########
@@ -518,51 +540,18 @@ private static void
setupClientAuthentication(SslContextBuilder builder,
}
}
- public static SslContextFactory createSslContextFactory(boolean
tlsAllowInsecureConnection,
- String tlsTrustCertsFilePath, String tlsCertificateFilePath,
String tlsKeyFilePath,
- boolean tlsRequireTrustedClientCertOnConnect, boolean autoRefresh,
long certRefreshInSec)
- throws GeneralSecurityException, SSLException,
FileNotFoundException, IOException {
- SslContextFactory sslCtxFactory = null;
- if (autoRefresh) {
- sslCtxFactory = new
SslContextFactoryWithAutoRefresh(tlsAllowInsecureConnection,
tlsTrustCertsFilePath,
- tlsCertificateFilePath, tlsKeyFilePath,
tlsRequireTrustedClientCertOnConnect, 0);
- } else {
- sslCtxFactory = new SslContextFactory();
- SSLContext sslCtx = createSslContext(tlsAllowInsecureConnection,
tlsTrustCertsFilePath,
- tlsCertificateFilePath, tlsKeyFilePath);
- sslCtxFactory.setSslContext(sslCtx);
- }
- if (tlsRequireTrustedClientCertOnConnect) {
- sslCtxFactory.setNeedClientAuth(true);
- } else {
- sslCtxFactory.setWantClientAuth(true);
+ private static Provider resolveProvider(String providerName) throws
NoSuchAlgorithmException {
+ if (StringUtils.isEmpty(providerName)) {
Review comment:
Good catch! These things has been fixed.
--
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]