public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(s, host, port, autoClose), new Object[]{host, port}); }
private Socket enableCipherSuites(Socket s, Object[] logParams) { SSLSocket socket = (SSLSocket)s; if (socket == null) { LogUtils.log(LOG, Level.SEVERE, "PROBLEM_CREATING_OUTBOUND_REQUEST_SOCKET", logParams); return socket; } if (protocol != null) { String[] p = findProtocols(protocol, socket.getSupportedProtocols()); if (p != null) { socket.setEnabledProtocols(p); } } if (ciphers != null) { socket.setEnabledCipherSuites(ciphers); } return socket; } private String[] findProtocols(String p, String[] options) {
socketFactory = new SSLSocketFactoryWrapper(ctx.getSocketFactory(), cipherSuites, protocol);
socketFactory = new SSLSocketFactoryWrapper(ctx.getSocketFactory(), cipherSuites, protocol);
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(host, port, localHost, localPort), new Object[]{host, port}); }
private Socket enableCipherSuites(Socket s, Object[] logParams) { SSLSocket socket = (SSLSocket)s; if (socket == null) { LogUtils.log(LOG, Level.SEVERE, "PROBLEM_CREATING_OUTBOUND_REQUEST_SOCKET", logParams); return socket; } if (protocol != null) { String[] p = findProtocols(protocol, socket.getSupportedProtocols()); if (p != null) { socket.setEnabledProtocols(p); } } if (ciphers != null) { socket.setEnabledCipherSuites(ciphers); } return socket; } private String[] findProtocols(String p, String[] options) {
socketFactory = new SSLSocketFactoryWrapper(ctx.getSocketFactory(), cipherSuites, protocol);
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException { return enableCipherSuites(sslSocketFactory.createSocket(address, port, localAddress, localPort), new Object[]{address, port}); }
private Socket enableCipherSuites(Socket s, Object[] logParams) { SSLSocket socket = (SSLSocket)s; if (socket == null) { LogUtils.log(LOG, Level.SEVERE, "PROBLEM_CREATING_OUTBOUND_REQUEST_SOCKET", logParams); return socket; } if (protocol != null) { String p[] = findProtocols(protocol, socket.getSupportedProtocols()); if (p != null) { socket.setEnabledProtocols(p); } } if (ciphers != null) { socket.setEnabledCipherSuites(ciphers); } return socket; } private String[] findProtocols(String p, String[] options) {
public Socket createSocket(String host, int port) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(host, port), new Object[]{host, port}); }
public Socket createSocket(InetAddress host, int port) throws IOException { return enableCipherSuites(sslSocketFactory.createSocket(host, port), new Object[]{host, port}); }
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(host, port, localHost, localPort), new Object[]{host, port}); }
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(s, host, port, autoClose), new Object[]{host, port}); }
public Socket createSocket(String host, int port) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(host, port), new Object[]{host, port}); }
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(host, port, localHost, localPort), new Object[]{host, port}); }
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException { return enableCipherSuites(sslSocketFactory.createSocket(address, port, localAddress, localPort), new Object[]{address, port}); }
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException { return enableCipherSuites(sslSocketFactory.createSocket(address, port, localAddress, localPort), new Object[]{address, port}); }
public Socket createSocket(InetAddress host, int port) throws IOException { return enableCipherSuites(sslSocketFactory.createSocket(host, port), new Object[]{host, port}); }
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException, UnknownHostException { return enableCipherSuites(sslSocketFactory.createSocket(s, host, port, autoClose), new Object[]{host, port}); }
public Socket createSocket(InetAddress host, int port) throws IOException { return enableCipherSuites(sslSocketFactory.createSocket(host, port), new Object[]{host, port}); }