cat.debug("User '"+data.getUsername()+"' does not have clear text password.");
log.debug("User '"+data.getUsername()+"' does not have clear text password.");
    public void createAllWithStatus(int status) throws Exception {        cat.debug(">createAllWithStatus: "+status);        IUserAdminSessionRemote admin = adminhome.create();        Collection result = admin.findAllUsersByStatus(administrator, status);        Iterator it = result.iterator();        boolean createJKS;        boolean createPEM;        boolean createP12;        int tokentype = SecConst.TOKEN_SOFT_BROWSERGEN;        String failedusers = "";        int failcount = 0;        String successusers = "";        int successcount = 0;        while( it.hasNext() ) {            createJKS = false;            createPEM = false;            createP12 = false;            UserAdminData data = (UserAdminData) it.next();            if ((data.getPassword() != null) && (data.getPassword().length() > 0)) {                try {                    cat.info("Generating keys for " + data.getUsername());                    cat.info("Password:" + data.getPassword());                    // get users Token Type.                    tokentype = data.getTokenType();                    createP12 = tokentype == SecConst.TOKEN_SOFT_P12;                    createPEM = tokentype == SecConst.TOKEN_SOFT_PEM;                    createJKS = tokentype == SecConst.TOKEN_SOFT_JKS;                    // Only generate supported tokens                    if(createP12 || createPEM || createJKS){                      // Grab new user, set status to INPROCESS                      admin.setUserStatus(administrator, data.getUsername(), UserDataLocal.STATUS_INPROCESS);                      processUser(data, createJKS, createPEM);                      // If all was OK , set status to GENERATED                      admin.setUserStatus(administrator, data.getUsername(), UserDataLocal.STATUS_GENERATED);                      // Delete clear text password                      admin.setClearTextPassword(administrator, data.getUsername(), null);                      successusers += ":" + data.getUsername();                      successcount++;                    }                    else                      cat.info("Cannot batchmake browser generated token for user - " + data.getUsername());                } catch (Exception e) {                    // If things went wrong set status to FAILED                    cat.error("An error happened, setting status to FAILED.");                    cat.error(e.getMessage());                    failedusers += ":" + data.getUsername();                    failcount++;                    admin.setUserStatus(administrator, data.getUsername(), UserDataLocal.STATUS_FAILED);                }            } else                cat.debug("User '"+data.getUsername()+"' does not have clear text password.");        }        if (failedusers != "")            throw new Exception("BatchMakeP12 failed for " + failcount + " users (" + successcount + " succeeded) - " + failedusers);        cat.info(successcount + " new users generated successfully - " + successusers);        cat.debug("<createAllWithStatus: "+status);    } // createAllWithStatus