int caid = data.getCAId();
int caid = data.getCaId();
    public boolean verifyPassword(Admin admin, String username, String password) throws UserDoesntFullfillEndEntityProfile, AuthorizationDeniedException, FinderException {        debug(">verifyPassword(" + username + ", hiddenpwd)");        boolean ret = false;        // Find user        UserDataPK pk = new UserDataPK(username);        UserDataLocal data = home.findByPrimaryKey(pk);        int caid = data.getCAId();        if (getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()) {            // Check if administrator is authorized to edit user.            if (!authorizedToEndEntityProfile(admin, data.getEndEntityProfileId(), AvailableAccessRules.EDIT_RIGHTS)) {                logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY, "Administrator isn't authorized to verify password.");                throw new AuthorizationDeniedException("Administrator not authorized to verify user.");            }        }        if (!authorizedToCA(admin, caid)) {            logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY, "Administrator not authorized to verify password of user with current CA.");            throw new AuthorizationDeniedException("Administrator not authorized to verify password for user with given CA.");        }        try {            ret = data.comparePassword(password);        } catch (java.security.NoSuchAlgorithmException nsae) {            debug("NoSuchAlgorithmException while verifying password for user " + username);            throw new EJBException(nsae);        }        debug("<verifyPassword(" + username + ", hiddenpwd)");        return ret;    } // verifyPassword