logsession.log(admin, data.getCAId(), LogEntry.MODULE_CA, new java.util.Date(),username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY,"Changed status to STATUS_GENERATED.");
logsession.log(admin, data.getCaId(), LogEntry.MODULE_CA, new java.util.Date(),username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY,"Changed status to STATUS_GENERATED.");
    public void finishUser(Admin admin, String username, String password)        throws ObjectNotFoundException {        debug(">finishUser(" + username + ", hiddenpwd)");        try {            // Find the user with username username            UserDataPK pk = new UserDataPK(username);            UserDataLocal data = userHome.findByPrimaryKey(pk);            data.setStatus(UserDataLocal.STATUS_GENERATED);            data.setTimeModified((new Date()).getTime());            logsession.log(admin, data.getCAId(), LogEntry.MODULE_CA, new java.util.Date(),username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY,"Changed status to STATUS_GENERATED.");            debug("<finishUser("+username+", hiddenpwd)");        } catch (ObjectNotFoundException oe) {            logsession.log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_USERAUTHENTICATION,"Got request for nonexisting user.");            throw oe;        } catch (Exception e) {            error("Unexpected error in finnishUser(): ", e);            throw new EJBException(e.toString());        }    } //finishUser