arankin-irl commented on a change in pull request #728: ZOOKEEPER-3160: Custom User SSLContext URL: https://github.com/apache/zookeeper/pull/728#discussion_r248965696
########## File path: zookeeper-server/src/test/java/org/apache/zookeeper/common/X509UtilTest.java ########## @@ -513,4 +518,27 @@ private void setCustomCipherSuites() { x509Util.close(); // remember to close old instance before replacing it x509Util = new ClientX509Util(); } + + public static class NullSslContextSupplier implements Supplier<SSLContext> { + + @Override + public SSLContext get() { + return null; + } + + } + + public static class SslContextSupplier implements Supplier<SSLContext> { + + @Override + public SSLContext get() { + try { + return SSLContext.getDefault(); + } catch (NoSuchAlgorithmException e) { + return null; Review comment: Will do :+1: ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services