Beispiel #1
0
  private void gotUnknown(Message msg, SSHPacket buf) throws SSHException {
    if (currentMethod == null || result == null) {
      trans.sendUnimplemented();
      return;
    }

    log.debug("Asking {} method to handle {} packet", currentMethod.getName(), msg);
    try {
      currentMethod.handle(msg, buf);
    } catch (UserAuthException e) {
      result.error(e);
    }
  }
Beispiel #2
0
 @Override
 public void notifyError(SSHException error) {
   super.notifyError(error);
   result.error(error);
 }