From 7e298bb4c330a6a9c5a838eff61f3709278e09cb Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:56:30 +0600 Subject: [PATCH] Use null as default password, unlike Lettuce where it uses empty char array. --- src/main/java/redis/clients/jedis/SslOptions.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/redis/clients/jedis/SslOptions.java b/src/main/java/redis/clients/jedis/SslOptions.java index 5221d77736..b79dad3c27 100644 --- a/src/main/java/redis/clients/jedis/SslOptions.java +++ b/src/main/java/redis/clients/jedis/SslOptions.java @@ -52,8 +52,8 @@ public class SslOptions { private static final Logger logger = LoggerFactory.getLogger(SslOptions.class); - private final String keyManagerAlgorithm = KeyManagerFactory.getDefaultAlgorithm(); //private final String keyManagerAlgorithm = TrustManagerFactory.getDefaultAlgorithm(); // Lettuce + private final String keyManagerAlgorithm = KeyManagerFactory.getDefaultAlgorithm(); private final String trustManagerAlgorithm = TrustManagerFactory.getDefaultAlgorithm(); @@ -107,11 +107,13 @@ public static class Builder { private Resource keystoreResource; - private char[] keystorePassword = new char[0]; + //private char[] keystorePassword = new char[0]; // Lettuce + private char[] keystorePassword = null; private Resource truststoreResource; - private char[] truststorePassword = new char[0]; + //private char[] truststorePassword = new char[0]; // Lettuce + private char[] truststorePassword = null; private SSLParameters sslParameters;