socket.setEnabledCipherSuites(sslC.getEnabledCipherSuites()); if (sslC.getEnabledProtocols() != null) { socket.setEnabledProtocols(sslC.getEnabledProtocols());
socket.setEnabledCipherSuites(sslC.getEnabledCipherSuites()); if (sslC.getEnabledProtocols() != null) { socket.setEnabledProtocols(sslC.getEnabledProtocols());
socket.setEnabledCipherSuites(sslC.getEnabledCipherSuites()); if (sslC.getEnabledProtocols() != null) { socket.setEnabledProtocols(sslC.getEnabledProtocols());
lcc.setEnabledCipherSuites(cc.getSslConfig().getEnabledCipherSuites()); if (cc.getSslConfig() != null && cc.getSslConfig().getEnabledProtocols() != null) { lcc.setSslProtocol(cc.getSslConfig().getEnabledProtocols()[0]);
/** * Returns a ssl config initialized with the supplied config. * * @param config ssl config to read properties from * * @return ssl config */ public static SslConfig newSslConfig(final SslConfig config) { final SslConfig sc = new SslConfig(); sc.setCredentialConfig(config.getCredentialConfig()); sc.setTrustManagers(config.getTrustManagers()); sc.setEnabledCipherSuites(config.getEnabledCipherSuites()); sc.setEnabledProtocols(config.getEnabledProtocols()); sc.setHandshakeCompletedListeners(config.getHandshakeCompletedListeners()); return sc; }
/** * Returns a ssl config initialized with the supplied config. * * @param config ssl config to read properties from * * @return ssl config */ public static SslConfig newSslConfig(final SslConfig config) { final SslConfig sc = new SslConfig(); sc.setCredentialConfig(config.getCredentialConfig()); sc.setTrustManagers(config.getTrustManagers()); sc.setHostnameVerifier(config.getHostnameVerifier()); sc.setHostnameVerifierConfig(config.getHostnameVerifierConfig()); sc.setEnabledCipherSuites(config.getEnabledCipherSuites()); sc.setEnabledProtocols(config.getEnabledProtocols()); sc.setHandshakeCompletedListeners(config.getHandshakeCompletedListeners()); return sc; }
/** * Returns a ssl config initialized with the supplied config. * * @param config ssl config to read properties from * * @return ssl config */ public static SslConfig newSslConfig(final SslConfig config) { final SslConfig sc = new SslConfig(); sc.setCredentialConfig(config.getCredentialConfig()); sc.setTrustManagers(config.getTrustManagers()); sc.setHostnameVerifier(config.getHostnameVerifier()); sc.setHostnameVerifierConfig(config.getHostnameVerifierConfig()); sc.setEnabledCipherSuites(config.getEnabledCipherSuites()); sc.setEnabledProtocols(config.getEnabledProtocols()); sc.setHandshakeCompletedListeners(config.getHandshakeCompletedListeners()); return sc; }