Package unibg.overencrypt.core

Examples of unibg.overencrypt.core.User.login()


      LOGGER.debug("request.Authorization != null. Request type: " + request.getMethod().toString());
      user = new User();
      String username = request.getAuthorization().getUser();
      String passw = request.getAuthorization().getPassword();
      try {
        user.login(username, passw);
      } catch (Exception e) {
        LOGGER.error("Error while retrieving logged user info",e);
      }
    }else{
      LOGGER.debug("request.Authorization == null.");
View Full Code Here


    log.debug("Authenticate called - user: " + user + " pwd: " + pwd);
    User overEncryptUser = null;
    try {
      overEncryptUser = new User();
      log.debug("UserRoot authenticate is called with: ("+user+","+pwd+")");
      if(overEncryptUser.login(user, pwd)) {
        String userRootPath = ServerConfiguration.getWebDAVrootPath() + "/" + overEncryptUser.getId();
        resourceManager.setRoot(userRootPath);
        log.debug("userRootPath: " + userRootPath.toString());

        //Check if user has already done DHKeyAgreement
View Full Code Here

  public boolean authorise(Request request, Method method, Auth auth, Resource resource) {
    log.debug("Authorise called - request: " + request);
    boolean authorized = false;
    User user = new User();
    try {
      if(auth != null && user.login(auth.getUser(),auth.getPassword())){
        if(SessionManager.isAlreadyInSession(String.valueOf(user.getId()))){
          authorized = true;
        }     
      }
    } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.