factory.setTrustStoreProvider(trustStoreProvider);
factory.setTrustStoreProvider(trustStoreProvider);
String trustStoreProvider = KeyStoreUtils.getKeyStoreProvider(trustStoreType); if (StringUtils.isNoneEmpty(trustStoreProvider)) { contextFactory.setTrustStoreProvider(trustStoreProvider);
private void configureSslTrustStore(SslContextFactory factory, Ssl ssl) { if (ssl.getTrustStorePassword() != null) { factory.setTrustStorePassword(ssl.getTrustStorePassword()); } if (ssl.getTrustStore() != null) { try { URL url = ResourceUtils.getURL(ssl.getTrustStore()); factory.setTrustStoreResource(Resource.newResource(url)); } catch (IOException ex) { throw new WebServerException( "Could not find trust store '" + ssl.getTrustStore() + "'", ex); } } if (ssl.getTrustStoreType() != null) { factory.setTrustStoreType(ssl.getTrustStoreType()); } if (ssl.getTrustStoreProvider() != null) { factory.setTrustStoreProvider(ssl.getTrustStoreProvider()); } }
contextFactory.setTrustStoreProvider(sslSettings.valueOfIndex("trustStoreProvider").toString());
factory.setTrustStoreProvider(trustStoreProvider);
if( "PKCS12".equals( truststoreType ) ) ssl.setTrustStoreProvider( "BC" ); needBouncyCastle = true;
if( "PKCS12".equals( truststoreType ) ) ssl.setTrustStoreProvider( "BC" ); needBouncyCastle = true;
if( "PKCS12".equals( truststoreType ) ) ssl.setTrustStoreProvider( "BC" ); needBouncyCastle = true;