@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 (signatureAndHashAlgorithms != null) { config.setAddSignatureAndHashAlgorithmsExtension(true); config.setDefaultClientSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultServerSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultSelectedSignatureAndHashAlgorithm(signatureAndHashAlgorithms.get(0)); } }
SignatureAndHashAlgorithmDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (signatureAndHashAlgorithms != null) { config.setAddSignatureAndHashAlgorithmsExtension(true); config.setDefaultClientSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultServerSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultSelectedSignatureAndHashAlgorithm(signatureAndHashAlgorithms.get(0)); } } }
SignatureAndHashAlgorithmDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (signatureAndHashAlgorithms != null) { config.setAddSignatureAndHashAlgorithmsExtension(true); config.setDefaultClientSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultServerSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultSelectedSignatureAndHashAlgorithm(signatureAndHashAlgorithms.get(0)); } } SignatureAndHashAlgorithmDelegate(); }
SignatureAndHashAlgorithmDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (signatureAndHashAlgorithms != null) { config.setAddSignatureAndHashAlgorithmsExtension(true); config.setDefaultClientSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultServerSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultSelectedSignatureAndHashAlgorithm(signatureAndHashAlgorithms.get(0)); } } SignatureAndHashAlgorithmDelegate(); List<SignatureAndHashAlgorithm> getSignatureAndHashAlgorithms(); void setSignatureAndHashAlgorithms(List<SignatureAndHashAlgorithm> signatureAndHashAlgorithms); @Override void applyDelegate(Config config); }
SignatureAndHashAlgorithmDelegate extends Delegate { @Override public void applyDelegate(Config config) { if (signatureAndHashAlgorithms != null) { config.setAddSignatureAndHashAlgorithmsExtension(true); config.setDefaultClientSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultServerSupportedSignatureAndHashAlgorithms(signatureAndHashAlgorithms); config.setDefaultSelectedSignatureAndHashAlgorithm(signatureAndHashAlgorithms.get(0)); } } SignatureAndHashAlgorithmDelegate(); List<SignatureAndHashAlgorithm> getSignatureAndHashAlgorithms(); void setSignatureAndHashAlgorithms(List<SignatureAndHashAlgorithm> signatureAndHashAlgorithms); @Override void applyDelegate(Config config);  }