@Test public void testPassDefaultCipherSuites() throws Exception { final String[] cipherSuites = new String[] { "A" }; configurable.setDefaultCipherSuites(cipherSuites); configuration.configure(configurable); assertTrue(Arrays.equals(cipherSuites, configurable.getEnabledCipherSuites())); }
public void configure(SSLConfigurable socket) { socket.setEnabledProtocols(enabledProtocols(socket.getSupportedProtocols(), socket.getDefaultProtocols())); socket.setEnabledCipherSuites(enabledCipherSuites(socket.getSupportedCipherSuites(), socket.getDefaultCipherSuites())); if (isNeedClientAuth() != null) { socket.setNeedClientAuth(isNeedClientAuth()); } if (isWantClientAuth() != null) { socket.setWantClientAuth(isWantClientAuth()); } }
SSLParametersConfiguration extends ContextAwareBase { public void configure(SSLConfigurable socket) { socket.setEnabledProtocols(enabledProtocols(socket.getSupportedProtocols(), socket.getDefaultProtocols())); socket.setEnabledCipherSuites(enabledCipherSuites(socket.getSupportedCipherSuites(), socket.getDefaultCipherSuites())); if (isNeedClientAuth() != null) { socket.setNeedClientAuth(isNeedClientAuth()); } if (isWantClientAuth() != null) { socket.setWantClientAuth(isWantClientAuth()); } } }
SSLParametersConfiguration extends ContextAwareBase { public void configure(SSLConfigurable socket) { socket.setEnabledProtocols(enabledProtocols(socket.getSupportedProtocols(), socket.getDefaultProtocols())); socket.setEnabledCipherSuites(enabledCipherSuites(socket.getSupportedCipherSuites(), socket.getDefaultCipherSuites())); if (isNeedClientAuth() != null) { socket.setNeedClientAuth(isNeedClientAuth()); } if (isWantClientAuth() != null) { socket.setWantClientAuth(isWantClientAuth()); } }  }
SSLParametersConfiguration extends ContextAwareBase { public void configure(SSLConfigurable socket) { socket.setEnabledProtocols(enabledProtocols(socket.getSupportedProtocols(), socket.getDefaultProtocols())); socket.setEnabledCipherSuites(enabledCipherSuites(socket.getSupportedCipherSuites(), socket.getDefaultCipherSuites())); if (isNeedClientAuth() != null) { socket.setNeedClientAuth(isNeedClientAuth()); } if (isWantClientAuth() != null) { socket.setWantClientAuth(isWantClientAuth()); } }  void configure(SSLConfigurable socket); String getIncludedProtocols(); void setIncludedProtocols(String protocols); String getExcludedProtocols(); void setExcludedProtocols(String protocols); String getIncludedCipherSuites(); void setIncludedCipherSuites(String cipherSuites); String getExcludedCipherSuites(); void setExcludedCipherSuites(String cipherSuites); Boolean isNeedClientAuth(); void setNeedClientAuth(Boolean needClientAuth); Boolean isWantClientAuth(); void setWantClientAuth(Boolean wantClientAuth); }
SSLParametersConfiguration extends ContextAwareBase { public void configure(SSLConfigurable socket) { socket.setEnabledProtocols(enabledProtocols(socket.getSupportedProtocols(), socket.getDefaultProtocols())); socket.setEnabledCipherSuites(enabledCipherSuites(socket.getSupportedCipherSuites(), socket.getDefaultCipherSuites())); if (isNeedClientAuth() != null) { socket.setNeedClientAuth(isNeedClientAuth()); } if (isWantClientAuth() != null) { socket.setWantClientAuth(isWantClientAuth()); } }  void configure(SSLConfigurable socket); String getIncludedProtocols(); void setIncludedProtocols(String protocols); String getExcludedProtocols(); void setExcludedProtocols(String protocols); String getIncludedCipherSuites(); void setIncludedCipherSuites(String cipherSuites); String getExcludedCipherSuites(); void setExcludedCipherSuites(String cipherSuites); Boolean isNeedClientAuth(); void setNeedClientAuth(Boolean needClientAuth); Boolean isWantClientAuth(); void setWantClientAuth(Boolean wantClientAuth);  }