@Test public void testNothingSetNothingChanges() { Config config = Config.createConfig(); Config config2 = Config.createConfig(); delegate.applyDelegate(config); assertTrue(EqualsBuilder.reflectionEquals(config, config2, "keyStore", "ourCertificate")); }
@Override public void applyDelegate(Config config) { if (cipherSuites != null) { config.setDefaultClientSupportedCiphersuites(cipherSuites); config.setDefaultServerSupportedCiphersuites(cipherSuites); if (cipherSuites.size() > 0) { config.setDefaultSelectedCipherSuite(cipherSuites.get(0)); } } }
CiphersuiteDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (cipherSuites != null) { config.setDefaultClientSupportedCiphersuites(cipherSuites); config.setDefaultServerSupportedCiphersuites(cipherSuites); if (cipherSuites.size() > 0) { config.setDefaultSelectedCipherSuite(cipherSuites.get(0)); } } } }
CiphersuiteDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (cipherSuites != null) { config.setDefaultClientSupportedCiphersuites(cipherSuites); config.setDefaultServerSupportedCiphersuites(cipherSuites); if (cipherSuites.size() > 0) { config.setDefaultSelectedCipherSuite(cipherSuites.get(0)); } } } CiphersuiteDelegate(); }
CiphersuiteDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (cipherSuites != null) { config.setDefaultClientSupportedCiphersuites(cipherSuites); config.setDefaultServerSupportedCiphersuites(cipherSuites); if (cipherSuites.size() > 0) { config.setDefaultSelectedCipherSuite(cipherSuites.get(0)); } } } CiphersuiteDelegate(); List<CipherSuite> getCipherSuites(); void setCipherSuites(List<CipherSuite> cipherSuites); void setCipherSuites(CipherSuite... cipherSuites); @Override void applyDelegate(Config config); }
CiphersuiteDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (cipherSuites != null) { config.setDefaultClientSupportedCiphersuites(cipherSuites); config.setDefaultServerSupportedCiphersuites(cipherSuites); if (cipherSuites.size() > 0) { config.setDefaultSelectedCipherSuite(cipherSuites.get(0)); } } } CiphersuiteDelegate(); List<CipherSuite> getCipherSuites(); void setCipherSuites(List<CipherSuite> cipherSuites); void setCipherSuites(CipherSuite... cipherSuites); @Override void applyDelegate(Config config);  }