throw new  AuthorizationDeniedException("Your certificate do not belong to an administrator.");
throw new AuthorizationDeniedException("Your certificate does not belong to an administrator.");
    public void checkIfSubjectDNisAdmin(Admin admin, String subjectdn) throws AuthorizationDeniedException, RemoteException {        debug(">CheckIfSubjectDNisAdmin("+subjectdn+")");        String dn = CertTools.stringToBCDNString(subjectdn);        debug("Looking for users with subjectdn: " + dn);        UserAdminData returnval = null;        UserDataLocal data = null;        try{          data = home.findBySubjectDN(dn);        } catch( FinderException e) {          cat.debug("Cannot find user with DN='"+dn+"'");        }        if(data != null){          int type = data.getType();          if( (type & SecConst.USER_ADMINISTRATOR)  == 0){             logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_ADMINISTRATORLOGGEDIN,"Certificate didn't belong to an administrator.");             throw new  AuthorizationDeniedException("Your certificate do not belong to an administrator.");          }          }else{          logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_ADMINISTRATORLOGGEDIN,"Certificate didn't belong to any user.");            throw new  AuthorizationDeniedException("Your certificate do not belong to any user.");        }        debug("<CheckIfSubjectDNisAdmin("+subjectdn+")");    } // findUserBySubjectDN