@Test public void testSSLConfiguration() throws Exception { SSLConfiguration config = new SSLConfiguration(); assertNull(config.getKeystore()); try { context = config.createSSLContext(); fail("Should raized an exception"); } catch (final VitamException e) { } truststore = new ArrayList<>(); keystore = new ArrayList<>(); truststore.add(key); keystore.add(key); config = new SSLConfiguration(keystore, truststore); config.setKeystore(keystore); config.setTruststore(truststore); context = config.createSSLContext(); assertEquals(1, config.getTruststore().size()); assertEquals(1, config.getKeystore().size()); assertNotNull(context); }
public SSLConfiguration() { }
SSLConfiguration { public SSLConfiguration() { } }
SSLConfiguration { public SSLConfiguration() { } SSLConfiguration();  SSLConfiguration(List<SSLKey> keystore, List<SSLKey> truststore); }
SSLConfiguration { public SSLConfiguration() { } SSLConfiguration();  SSLConfiguration(List<SSLKey> keystore, List<SSLKey> truststore); Registry<ConnectionSocketFactory> getRegistry(SSLContext sslContext); SSLContext createSSLContext(); List<SSLKey> getTruststore(); List<SSLKey> getKeystore(); SSLConfiguration setTruststore(List<SSLKey> truststore); SSLConfiguration setKeystore(List<SSLKey> keystore); String getProtocol(); void setProtocol(String protocol); }
SSLConfiguration { public SSLConfiguration() { } SSLConfiguration();  SSLConfiguration(List<SSLKey> keystore, List<SSLKey> truststore); Registry<ConnectionSocketFactory> getRegistry(SSLContext sslContext); SSLContext createSSLContext(); List<SSLKey> getTruststore(); List<SSLKey> getKeystore(); SSLConfiguration setTruststore(List<SSLKey> truststore); SSLConfiguration setKeystore(List<SSLKey> keystore); String getProtocol(); void setProtocol(String protocol);  }