UserDataLocal.STATUS_REVOKED); getOutputStream().println("New status=" + UserDataLocal.STATUS_REVOKED);
UserDataConstants.STATUS_REVOKED); getOutputStream().println("New status=" + UserDataConstants.STATUS_REVOKED);
    public void execute() throws IllegalAdminCommandException, ErrorAdminCommandException {        try {            if (args.length < 3) {                getOutputStream().println("Usage: RA revokeuser <username> <reason>");                getOutputStream().println(                    "Reason: unused(0), keyCompromise(1), cACompromise(2), affiliationChanged(3), superseded(4), cessationOfOperation(5), certficateHold(6), removeFromCRL(8),privilegeWithdrawn(9),aACompromise(10)");                getOutputStream().println("Normal reason is 0");                return;            }            String username = args[1];            int reason = Integer.parseInt(args[2]);            if ((reason == 7) || (reason < 0) || (reason > 10)) {                getOutputStream().println("Error : Reason must be an integer between 0 and 10 except 7.");            } else {                UserDataVO data = getAdminSession().findUser(administrator, username);                getOutputStream().println("Found user:");                getOutputStream().println("username=" + data.getUsername());                getOutputStream().println("dn=\"" + data.getDN() + "\"");                getOutputStream().println("Old status=" + data.getStatus());                getAdminSession().setUserStatus(administrator, username,                    UserDataLocal.STATUS_REVOKED);                getOutputStream().println("New status=" + UserDataLocal.STATUS_REVOKED);                // Revoke users certificates                try {                    getAdminSession().revokeUser(administrator, username, reason);                } catch (AuthorizationDeniedException e) {                    getOutputStream().println("Error : Not authorized to revoke user.");                }            }        } catch (Exception e) {            throw new ErrorAdminCommandException(e);        }    }