cond.add(ClientSessionEvent.AUTHED); if (KexState.DONE.equals(kexState.get()) && authFuture.isFailure()) { cond.add(ClientSessionEvent.WAIT_AUTH);
cond.add(ClientSessionEvent.AUTHED); if (KexState.DONE.equals(kexState.get()) && authFuture.isFailure()) { cond.add(ClientSessionEvent.WAIT_AUTH);
return false; if (!this.authFuture.isFailure()) { log.debug("unexpected state"); throw new IllegalStateException("Unexpected authentication state");
return false; if (!this.authFuture.isFailure()) { log.debug("unexpected state"); throw new IllegalStateException("Unexpected authentication state");
return false; if (!this.authFuture.isFailure()) { log.debug("unexpected state"); throw new IllegalStateException("Unexpected authentication state");
if (!authResult.isDone() || authResult.isFailure()) { LOG.debug("Failed to authenticate"); throw new RuntimeCamelException("Failed to authenticate username " + configuration.getUsername());