iter = certificatestoresession.getAuthorizedCertificateProfileIds(admin, SecConst.CERTTYPE_HARDTOKEN).iterator();
iter = certificatestoresession.getAuthorizedCertificateProfileIds(admin, CertificateDataBean.CERTTYPE_HARDTOKEN).iterator();
    public TreeMap getAuthorizedEndEntityCertificateProfileNames(boolean usehardtokenprofiles){      if(profilenamesendentity==null){        profilenamesendentity = new TreeMap();          Iterator iter = null;        if(usehardtokenprofiles)                   iter = certificatestoresession.getAuthorizedCertificateProfileIds(admin, SecConst.CERTTYPE_HARDTOKEN).iterator();        else         		  iter = certificatestoresession.getAuthorizedCertificateProfileIds(admin, SecConst.CERTTYPE_ENDENTITY).iterator();        HashMap idtonamemap = certificatestoresession.getCertificateProfileIdToNameMap(admin);        while(iter.hasNext()){          Integer id = (Integer) iter.next();          profilenamesendentity.put(idtonamemap.get(id),id);        }      }      return profilenamesendentity;      }