@Override public void start() { synchronized (lock) { log.debug("accepted"); // kick start the authentication process by failing the pending auth. this.authFuture.setAuthed(false); } }
@Override public void start() { synchronized (lock) { log.debug("accepted"); // kick start the authentication process by failing the pending auth. this.authFuture.setAuthed(false); } }
@Override public void start() { synchronized (lock) { log.debug("accepted"); // kick start the authentication process by failing the pending auth. this.authFuture.setAuthed(false); } }
public ClientSessionImpl(ClientFactoryManager client, IoSession ioSession) throws Exception { super(client, ioSession); if (log.isDebugEnabled()) { log.debug("Client session created: {}", ioSession); } // Need to set the initial service early as calling code likes to start trying to // manipulate it before the connection has even been established. For instance, to // set the authPassword. List<ServiceFactory> factories = client.getServiceFactories(); int numFactories = GenericUtils.size(factories); ValidateUtils.checkTrue((numFactories > 0) && (numFactories <= 2), "One or two services must be configured: %d", numFactories); currentServiceFactory = factories.get(0); currentService = currentServiceFactory.create(this); if (numFactories > 1) { nextServiceFactory = factories.get(1); nextService = nextServiceFactory.create(this); } else { nextServiceFactory = null; } authFuture = new DefaultAuthFuture(ioSession.getRemoteAddress(), lock); authFuture.setAuthed(false); signalSessionCreated(ioSession); sendClientIdentification(); kexState.set(KexState.INIT); sendKexInit(); }
public ClientSessionImpl(ClientFactoryManager client, IoSession ioSession) throws Exception { super(client, ioSession); if (log.isDebugEnabled()) { log.debug("Client session created: {}", ioSession); } // Need to set the initial service early as calling code likes to start trying to // manipulate it before the connection has even been established. For instance, to // set the authPassword. List<ServiceFactory> factories = client.getServiceFactories(); int numFactories = GenericUtils.size(factories); ValidateUtils.checkTrue((numFactories > 0) && (numFactories <= 2), "One or two services must be configured: %d", numFactories); currentServiceFactory = factories.get(0); currentService = currentServiceFactory.create(this); if (numFactories > 1) { nextServiceFactory = factories.get(1); nextService = nextServiceFactory.create(this); } else { nextServiceFactory = null; } authFuture = new DefaultAuthFuture(ioSession.getRemoteAddress(), lock); authFuture.setAuthed(false); signalSessionCreated(ioSession); sendClientIdentification(); kexState.set(KexState.INIT); sendKexInit(); }
authFuture.setAuthed(true); return;
authFuture.setAuthed(true); return;