protected void signalAuthFailure(AuthFuture future, Throwable t) { boolean signalled = false; synchronized (lock) { if ((future != null) && (!future.isDone())) { future.setException(t); signalled = true; } } if (log.isDebugEnabled()) { log.debug("signalAuthFailure({}) type={}, signalled={}, message=\"{}\"", this, t.getClass().getSimpleName(), signalled, t.getMessage()); } }
protected void signalAuthFailure(AuthFuture future, Throwable t) { boolean signalled = false; synchronized (lock) { if ((future != null) && (!future.isDone())) { future.setException(t); signalled = true; } } if (log.isDebugEnabled()) { log.debug("signalAuthFailure({}) type={}, signalled={}, message=\"{}\"", this, t.getClass().getSimpleName(), signalled, t.getMessage()); } }
@Override protected void preClose() { AuthFuture authFuture = authFutureHolder.get(); if ((authFuture != null) && (!authFuture.isDone())) { authFuture.setException(new SshException("Session is closed")); } super.preClose(); } }
@Override protected void preClose() { AuthFuture authFuture = authFutureHolder.get(); if ((authFuture != null) && (!authFuture.isDone())) { authFuture.setException(new SshException("Session is closed")); } super.preClose(); } }
authFuture.setException(new SshException( SshConstants.SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE, "No more authentication methods available")); return;
authFuture.setException(new SshException(SshConstants.SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE, "No more authentication methods available")); return;
currentFuture.setException(new InterruptedIOException("New authentication started before previous completed"));
currentFuture.setException(new InterruptedIOException("New authentication started before previous completed"));
@Override protected void preClose() { if (!authFuture.isDone()) { authFuture.setException(new SshException("Session is closed")); } super.preClose(); }
@Override protected void preClose() { if (!authFuture.isDone()) { authFuture.setException(new SshException("Session is closed")); } super.preClose(); }
@Override protected void preClose() { if (!authFuture.isDone()) { authFuture.setException(new SshException("Session is closed")); } super.preClose(); }