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.
This commit is contained in:
Norman Maurer 2015-11-27 13:48:32 +01:00
parent 6257091d12
commit 088ee71222

View File

@ -902,17 +902,6 @@ public abstract class SslContext {
return ks; 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, static PrivateKey toPrivateKey(File keyFile, String keyPassword) throws NoSuchAlgorithmException,
NoSuchPaddingException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeySpecException,
InvalidAlgorithmParameterException, InvalidAlgorithmParameterException,