@Override protected Future<?> execute() { return clientConnection .encrypt(proxyServer.getMitmManager() .clientSslEngineFor(initialRequest, sslEngine.getSession()), false) .addListener( new GenericFutureListener<Future<? super Channel>>() { @Override public void operationComplete( Future<? super Channel> future) throws Exception { if (future.isSuccess()) { clientConnection.setMitming(true); } } }); } };
.serverSslEngine())); } else { connectionFlow.then(serverConnection.EncryptChannel(proxyServer.getMitmManager() .serverSslEngine(parsedHostAndPort.getHostText(), parsedHostAndPort.getPort())));
.serverSslEngine())); } else { connectionFlow.then(serverConnection.EncryptChannel(proxyServer.getMitmManager() .serverSslEngine(parsedHostAndPort.getHost(), parsedHostAndPort.getPort())));
@Override protected Future<?> execute() { return clientConnection .encrypt(proxyServer.getMitmManager() .clientSslEngineFor(initialRequest, sslEngine.getSession()), false) .addListener( new GenericFutureListener<Future<? super Channel>>() { @Override public void operationComplete( Future<? super Channel> future) throws Exception { if (future.isSuccess()) { clientConnection.setMitming(true); } } }); } };
.serverSslEngine())); } else { connectionFlow.then(serverConnection.EncryptChannel(proxyServer.getMitmManager() .serverSslEngine(parsedHostAndPort.getHost(), parsedHostAndPort.getPort())));
@Override protected Future<?> execute() { return clientConnection .encrypt(proxyServer.getMitmManager() .clientSslEngineFor(initialRequest, sslEngine.getSession()), false) .addListener( new GenericFutureListener<Future<? super Channel>>() { @Override public void operationComplete( Future<? super Channel> future) throws Exception { if (future.isSuccess()) { clientConnection.setMitming(true); } } }); } };