37 if (trustAllCerts != null && trustAllCerts) {
38 LOG.trace(
"Created TRUST_ALL client.");
39 return CoreUtils.createHttpClientTrustAll();
42 if (StringUtils.isNotBlank(keyStorePath)) {
43 final File keyStoreFile =
new File(keyStorePath);
44 if (!keyStoreFile.exists()) {
45 LOG.error(
"ERROR in configuration. Key store path is invalid! Please fix key_store_path in oxd configuration");
50 }
catch (Exception e) {
51 LOG.error(e.getMessage(), e);
52 LOG.error(
"Failed to create http client based on oxd configuration. Created default client.");
54 return new DefaultHttpClient();
String getKeyStorePassword()
Definition: OxdServerConfiguration.java:166
static final Logger LOG
Definition: HttpService.java:25
OxdServerConfiguration configuration
Definition: HttpService.java:27
Boolean getTrustAllCerts()
Definition: OxdServerConfiguration.java:214
String getKeyStorePath()
Definition: OxdServerConfiguration.java:206