TrustManager[] trustStoreManagers = null;
KeyStore trustedCertStore = KeyStore.getInstance(trustStoreType);
trustedCertStore.load(new FileInputStream(trustStoreLocation), null);
TrustManagerFactory tmf =
TrustManagerFactory.getInstance(trustStoreKeyManagerFactoryAlgorithm);
try {
tmf.init(trustedCertStore);
trustStoreManagers = tmf.getTrustManagers();
LogUtils.log(LOG, Level.INFO, "LOADED_TRUST_STORE", new Object[]{trustStoreLocation});
} catch (Exception e) {
LogUtils.log(LOG, Level.WARNING, "FAILED_TO_LOAD_TRUST_STORE",
new Object[]{trustStoreLocation, e.getMessage()});
}