Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@ChannelHandler.Sharable
public final class SslMessageEncoder extends MessageToMessageEncoder<Message> {

private final Logger logger = LoggerFactory.getLogger(SslMessageEncoder.class);
private static final Logger logger = LoggerFactory.getLogger(SslMessageEncoder.class);

private SslMessageEncoder() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
public final class ReloadingX509TrustManager
implements X509TrustManager, Runnable {

private final Logger logger = LoggerFactory.getLogger(ReloadingX509TrustManager.class);
private static final Logger logger = LoggerFactory.getLogger(ReloadingX509TrustManager.class);

private final String type;
private final File file;
Expand Down Expand Up @@ -180,7 +180,8 @@ X509TrustManager loadTrustManager()
canonicalPath = latestCanonicalFile.getPath();
lastLoaded = latestCanonicalFile.lastModified();
try (FileInputStream in = new FileInputStream(latestCanonicalFile)) {
ks.load(in, password.toCharArray());
char[] passwordCharacters = password != null? password.toCharArray() : null;
ks.load(in, passwordCharacters);
logger.debug("Loaded truststore '" + file + "'");
}

Expand Down
Loading