/** * Gets the SSL server's keystore. */ protected KeyStore getKeystore(String pass) throws IOException { String keystoreFile = (String) attributes.get("keystore"); if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "Keystore file= {0}", keystoreFile); } String keystoreType = (String) attributes.get("keystoreType"); if (logger.isLoggable(Level.FINE)) { logger.log(Level.FINE, "Keystore type= {0}", keystoreType); } return getStore(keystoreType, keystoreFile, pass); } /*
/** * 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 keystore. */ protected KeyStore getKeystore(String pass) throws IOException { String keystoreFile = (String) attributes.get("keystore"); if (logger.isLoggable(Level.FINE)) { logger.fine("Keystore file= " + keystoreFile); } String keystoreType = (String) attributes.get("keystoreType"); if (logger.isLoggable(Level.FINE)) { logger.fine("Keystore type= " + keystoreType); } return getStore(keystoreType, keystoreFile, pass); } /*
/** * 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; }