Package org.quickserver.net

Examples of org.quickserver.net.AppException


        handler.sendClientMsg("-ERR Authorisation Failed");
        data.setPassword(null);
        return AuthStatus.FAILURE;
      }
    } else {
      throw new AppException("Unknown LastAsked!");
    }

    return null;
  }
View Full Code Here


    String username = askStringInput(clientHandler, null); //USER <USERNAME>
    //no need to check for null : done by QuickAuthenticator

    if(username.equalsIgnoreCase("QUIT")) {
      sendString(clientHandler, "221 Logged out.");
      throw new AppException("Quit");
    }
    if( username.toUpperCase().startsWith("USER ") == false){
      sendString(clientHandler, "503 Bad sequence of command, USER required.");
      return false;
    } else {
      sendString(clientHandler, "331 User name okay, need password.");
    }

    String password = askStringInput(clientHandler, null);//PASS <PASSWORD>
    //no need to check for null : done by QuickAuthenticator

    if(password.equalsIgnoreCase("QUIT")) {
      sendString(clientHandler, "221 Logged out.");
      throw new AppException("Quit");
    }
    if( password.toUpperCase().startsWith("PASS ") == false ){
      sendString(clientHandler, "503 Bad sequence of command, PASS required.");
      return false;
    }
View Full Code Here

        handler.sendClientMsg("Auth Failed");
        data.setPassword(null);
        return AuthStatus.FAILURE;
      }
    } else {
      throw new AppException("Unknown LastAsked!");
    }

    return null;
  }
View Full Code Here

        handler.sendClientMsg("Auth Failed");
        data.setPassword(null);
        return AuthStatus.FAILURE;
      }
    } else {
      throw new AppException("Unknown LastAsked!");
    }

    return null;//no AuthStatus yet
  }
View Full Code Here

                 data.setPassword(null);
                 return AuthStatus.FAILURE;
             }
         }
         else {
             throw new AppException("Unknown LastAsked!");
         }

         return null;
     }
View Full Code Here

TOP

Related Classes of org.quickserver.net.AppException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.