if (password != null) {
config.setBasicPassword(password);
}
if (keyStoreComponent != null && keyStoreName != null && keyAlias != null) {
return new XmlRpcClient(config, keyStoreComponent, keyStoreName, keyAlias);
} else {
return new XmlRpcClient(config);
}
}