try {
KeyStore keyStore = keyStoreLoader.loadKeyStore();
KeyStore trustStore = trustStoreLoader.loadKeyStore();
PKIXSSLContextFactory sslContextFactory = new PKIXSSLContextFactory(
keyStore, keyPassword, trustStore, !disableRevocation);
if (serverAlias != null) {
sslContextFactory
.setKeyManagerWrapper(new FixedServerAliasKeyManager.Wrapper(
serverAlias));
}
String[] crlArray = parameters.getValuesArray("crlUrl");
if (crlArray != null) {
for (String crlUrl : crlArray) {
sslContextFactory.addCrl(crlUrl);
}
}
synchronized (this) {
this.sslContextFactory = sslContextFactory;