socket.setNeedClientAuth(_needClientAuth); socket.setWantClientAuth(_wantClientAuth);
    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;    }