public class BetterSSLFactory
extends java.lang.Object
This work is based on http://codyaray.com/2013/04/java-ssl-with-multiple-keystores and common sense.
| Constructor and Description |
|---|
BetterSSLFactory() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.conn.ssl.SSLSocketFactory |
createSocketFactory(java.util.Collection<java.security.KeyStore> extraStores)
Creates a new SSL socket factory which supports both system-installed
keys and all additional keys in the provided keystores.
|
public static org.apache.http.conn.ssl.SSLSocketFactory createSocketFactory(java.util.Collection<java.security.KeyStore> extraStores)
throws java.security.KeyStoreException,
java.security.KeyManagementException
extraStores - extra keystores containing root certificate authorities.java.security.KeyStoreException - if key store have problems.java.security.KeyManagementException - if new SSL context could not be initialized.