/** * Gets the SSL server's truststore. */ protected KeyStore getTrustStore() throws IOException { KeyStore ts = null; String truststore = (String) attributes.get("truststore"); if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "Truststore file= {0}", truststore); } String truststoreType = (String) attributes.get("truststoreType"); if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "Truststore type= {0}", truststoreType); } String truststorePassword = getTruststorePassword(); if (truststore != null && truststorePassword != null) { ts = getStore(truststoreType, truststore, truststorePassword); } return ts; }
/** * Gets the SSL server's truststore. */ protected KeyStore getTrustStore() throws IOException { KeyStore ts = null; String truststore = (String) attributes.get("truststore"); if (logger.isLoggable(Level.FINE)) { logger.fine("Truststore file= " + truststore); } String truststoreType = (String) attributes.get("truststoreType"); if (logger.isLoggable(Level.FINE)) { logger.fine("Truststore type= " + truststoreType); } String truststorePassword = getTruststorePassword(); if (truststore != null && truststorePassword != null) { ts = getStore(truststoreType, truststore, truststorePassword); } return ts; }