properties.put(x509Util.getSslKeystoreTypeProperty(), System.getProperty(x509Util.getSslKeystoreTypeProperty())); properties.put(x509Util.getSslTruststoreLocationProperty(), System.getProperty(x509Util.getSslTruststoreLocationProperty())); properties.put(x509Util.getSslTruststorePasswdProperty(), System.getProperty(x509Util.getSslTruststorePasswdProperty()));
/** * Clears system properties set by * {@link #setSystemProperties(X509Util, KeyStoreFileType, KeyStoreFileType)}. * @param x509Util the X509Util to read property keys from. */ public void clearSystemProperties(X509Util x509Util) { System.clearProperty(x509Util.getSslKeystoreLocationProperty()); System.clearProperty(x509Util.getSslKeystorePasswdProperty()); System.clearProperty(x509Util.getSslKeystoreTypeProperty()); System.clearProperty(x509Util.getSslTruststoreLocationProperty()); System.clearProperty(x509Util.getSslTruststorePasswdProperty()); System.clearProperty(x509Util.getSslTruststoreTypeProperty()); System.clearProperty(x509Util.getSslHostnameVerificationEnabledProperty()); }
String trustStoreLocation = config.getProperty(x509Util.getSslTruststoreLocationProperty(), ""); String trustStorePassword = config.getProperty(x509Util.getSslTruststorePasswdProperty(), ""); String trustStoreTypeProp = config.getProperty(x509Util.getSslTruststoreTypeProperty());
System.setProperty(x509Util.getSslKeystoreTypeProperty(), keyStoreFileType.getPropertyValue()); System.setProperty( x509Util.getSslTruststoreLocationProperty(), this.getTrustStoreFile(trustStoreFileType).getAbsolutePath()); System.setProperty(x509Util.getSslTruststorePasswdProperty(), this.getTrustStorePassword());
LOG.warn(getSslTruststoreLocationProperty() + " not specified"); } else { try {