Setting multiple truststore on the same JVM
You can load trusted key stores dynamically at runtime. // load your key store as a stream and initialize a KeyStore InputStream trustStream = … KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType()); // if your store is password protected then declare it (it can be null however) char[] trustPassword = … // load the stream to your store … Read more