public boolean getEndEntityProfileAuthorization(Admin admin, int profileid, String rights) throws RemoteException { Boolean returnval = null; String resource= null; String adm = null; if(admin.getAdminInformation().isSpecialUser()) adm = Integer.toString(admin.getAdminInformation().getSpecialUser()); else adm = new String(admin.getAdminInformation().getX509Certificate().getSignature()); resource = adm + GlobalConfiguration.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights;  returnval = (Boolean) profileauthstore.get(resource);  if(returnval==null){  try{ if(local) authorizationsessionlocal.isAuthorized(admin.getAdminInformation(),GlobalConfiguration.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights); else authorizationsessionremote.isAuthorized(admin.getAdminInformation(),GlobalConfiguration.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights); returnval = new Boolean(true); }catch(AuthorizationDeniedException e){ returnval = new Boolean(false); } profileauthstore.put(resource,returnval); }  return returnval.booleanValue();
public boolean getEndEntityProfileAuthorization(Admin admin, int profileid, String rights, int module) throws RemoteException { return isAuthorized(admin,profileid,rights,true,module);
    public boolean getEndEntityProfileAuthorization(Admin admin, int profileid, String rights) throws RemoteException {      Boolean returnval = null;        String resource= null;        String adm = null;      if(admin.getAdminInformation().isSpecialUser())        adm = Integer.toString(admin.getAdminInformation().getSpecialUser());        else        adm = new String(admin.getAdminInformation().getX509Certificate().getSignature());                resource = adm + GlobalConfiguration.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights;        // Check if name is in hashmap      returnval = (Boolean) profileauthstore.get(resource);            if(returnval==null){        // Retreive profilename over RMI        try{          if(local)              authorizationsessionlocal.isAuthorized(admin.getAdminInformation(),GlobalConfiguration.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights);          else            authorizationsessionremote.isAuthorized(admin.getAdminInformation(),GlobalConfiguration.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights);                        returnval = new Boolean(true);        }catch(AuthorizationDeniedException e){          returnval = new Boolean(false);         }        profileauthstore.put(resource,returnval);      }               return returnval.booleanValue();    }