From 088ee712225f45c239dd5e297a2ee24c80080c14 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 27 Nov 2015 13:48:32 +0100 Subject: [PATCH] Remove unused method in SslContext Motivation: We missed to remove a method in SslContext while refactored the implementation. We should remove the method to keep things clean. Modifications: Remove unused method. Result: Code cleanup. --- .../main/java/io/netty/handler/ssl/SslContext.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/handler/src/main/java/io/netty/handler/ssl/SslContext.java b/handler/src/main/java/io/netty/handler/ssl/SslContext.java index 90dad6988c..3ba011d4ef 100644 --- a/handler/src/main/java/io/netty/handler/ssl/SslContext.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslContext.java @@ -902,17 +902,6 @@ public abstract class SslContext { return ks; } - static KeyStore buildKeyStore(File certChainFile, File keyFile, String keyPassword) - throws KeyStoreException, NoSuchAlgorithmException, - CertificateException, NoSuchPaddingException, InvalidKeySpecException, - InvalidAlgorithmParameterException, KeyException, IOException { - KeyStore ks = KeyStore.getInstance("JKS"); - ks.load(null, null); - ks.setKeyEntry("key", toPrivateKey(keyFile, keyPassword), - keyPassword == null ? null : keyPassword.toCharArray(), toX509Certificates(certChainFile)); - return ks; - } - static PrivateKey toPrivateKey(File keyFile, String keyPassword) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException,