this.sslSocketFactory = sslSocketFactory;
}
public void makeSSLSocketFactory() throws Exception {
if(getSslContext()==null && getSslSocketFactory()==null) {
SSLContext context = SSLContext.getInstance("SSLv3");
if(getTrustManager()==null && isUseDummyTrustManager()) {
setTrustManager(new TrustManager[]{DummyTrustManager.getInstance()});
}
KeyManager km[] = null;
if(getClientAuthKeystoreInputStream()!=null) {
KeyStore keyStore = KeyStore.getInstance("JKS");
keyStore.load(getClientAuthKeystoreInputStream(), getClientAuthKeystorePassword());
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
kmf.init(keyStore, getClientAuthKeyPassword());
km = kmf.getKeyManagers();
} else {
km = new KeyManager[0];
}
context.init(km, getTrustManager(), new SecureRandom());
setSslContext(context);
}
if(getSslSocketFactory()==null) {
SSLSocketFactory factory = getSslContext().getSocketFactory();