setUserStatus(admin, username, UserDataLocal.STATUS_REVOKED);
setUserStatus(admin, username, UserDataConstants.STATUS_REVOKED);
    public void revokeCert(Admin admin, BigInteger certserno, String issuerdn, String username, int reason) throws AuthorizationDeniedException, FinderException {        debug(">revokeCert(" + certserno + ", IssuerDN: " + issuerdn + ", username, " + username + ")");        UserDataPK pk = new UserDataPK(username);        UserDataLocal data;        try {            data = home.findByPrimaryKey(pk);        } catch (ObjectNotFoundException oe) {            throw new EJBException(oe);        }        int caid = data.getCaId();        if (!authorizedToCA(admin, caid)) {            logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_REVOKEDENDENTITY, "Administrator not authorized to revoke certificates of this CA.");            throw new AuthorizationDeniedException("Administrator not authorized to revoke certificate of user with given CA.");        }        if (getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()) {            if (!authorizedToEndEntityProfile(admin, data.getEndEntityProfileId(), AvailableAccessRules.REVOKE_RIGHTS)) {                logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_ERROR_REVOKEDENDENTITY, "Administrator not authorized");                throw new AuthorizationDeniedException("Not authorized to revoke user : " + username + ".");            }        }        Collection publishers = this.certificatesession.getCertificateProfile(admin, data.getCertificateProfileId()).getPublisherList();        // revoke certificate in database and all publishers        certificatesession.setRevokeStatus(admin, issuerdn, certserno, publishers, reason);        if (certificatesession.checkIfAllRevoked(admin, username)) {            setUserStatus(admin, username, UserDataLocal.STATUS_REVOKED);            logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(), username, null, LogEntry.EVENT_INFO_REVOKEDENDENTITY, "");        }        debug("<revokeCert()");    } // revokeCert