if(_cipherSuites != null && _cipherSuites.length >0) { socket.setEnabledCipherSuites(_cipherSuites); for ( int i=0; i<_cipherSuites.length; i++ ) { Log.debug("SslListener enabled ciphersuite: " + _cipherSuites[i]); }
if (_wantClientAuth) socket.setWantClientAuth(_wantClientAuth); if (_needClientAuth) socket.setNeedClientAuth(_needClientAuth);  if (_excludeCipherSuites != null && _excludeCipherSuites.length >0) { List excludedCSList = Arrays.asList(_excludeCipherSuites); String[] enabledCipherSuites = socket.getEnabledCipherSuites(); List enabledCSList = new ArrayList(Arrays.asList(enabledCipherSuites)); Iterator exIter = excludedCSList.iterator();  while (exIter.hasNext()) { String cipherName = (String)exIter.next(); if (enabledCSList.contains(cipherName)) { enabledCSList.remove(cipherName); } } enabledCipherSuites = (String[])enabledCSList.toArray(new String[enabledCSList.size()]);  socket.setEnabledCipherSuites(enabledCipherSuites);
    protected ServerSocket newServerSocket(String host, int port,int backlog) throws IOException    {        SSLServerSocketFactory factory = null;        SSLServerSocket socket = null;        try        {            factory = createFactory();            socket = (SSLServerSocket) (host==null?                            factory.createServerSocket(port,backlog):                            factory.createServerSocket(port,backlog,InetAddress.getByName(host)));            socket.setNeedClientAuth(_needClientAuth);            socket.setWantClientAuth(_wantClientAuth);            if(_cipherSuites != null && _cipherSuites.length >0) {                socket.setEnabledCipherSuites(_cipherSuites);                for ( int i=0; i<_cipherSuites.length; i++ ) {                    Log.debug("SslListener enabled ciphersuite: " + _cipherSuites[i]);                }                        }                    }        catch (IOException e)        {            throw e;        }        catch (Exception e)        {            Log.warn(Log.EXCEPTION, e);            throw new IOException("Could not create JsseListener: " + e.toString());        }        return socket;    }