Package com.cosmo.security

Examples of com.cosmo.security.UserNotFoundException


            if (agent.getParamBoolean(PARAM_LOCKCONTROL, false))
            {
               loginFail(login);
            }

            throw new UserNotFoundException();
         }

         // Actualiza los datos estadísticos y de control del usuario
         sql = "UPDATE " + TABLE_NAME + " " +
               "SET usrlastlogin  = current_timestamp, " +
View Full Code Here


      DataAgent conn = null;

      // Comprueba si existe el usuario especificado
      if (!loginExist(user.getLogin()))
      {
         throw new UserNotFoundException();
      }

      try
      {
         sSQL = "UPDATE " + TABLE_NAME + " " +
View Full Code Here

      DataAgent conn = null;

      // Comprueba si existe el usuario especificado
      if (!loginExist(login))
      {
         throw new UserNotFoundException();
      }

      try
      {
         // Elimina el usuario
View Full Code Here

                "      usrpwd = '" + CryptoUtils.encrypt(oldPassword) + "'";

         conn = DataFactory.getInstance(workspace);
         if (conn.executeScalar(sSQL) <= 0)
         {
            throw new UserNotFoundException();
         }

         // Actualiza la contrase�a del usuario
         sSQL = "UPDATE " + TABLE_NAME + " " +
                "SET   usrpwd = '" + CryptoUtils.encrypt(newPassword) + "' " +
View Full Code Here

         NamingEnumeration<?> results = ctx.search(agent.getParamString(PARAM_SEARCHBASE), "cn=" + login, constraints);
        
         // Verifica si se ha encontrado la entrada en el directorio
         if (results == null || !results.hasMore())
         {
            throw new UserNotFoundException();
         }
         else
         {
            user = new User();
            user.setLogin(login);
View Full Code Here

TOP

Related Classes of com.cosmo.security.UserNotFoundException

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.