HashSet authorizedcertprofiles = new HashSet(getCertificateStoreSession().getAuthorizedCertificateProfileIds(admin, SecConst.CERTTYPE_HARDTOKEN));
HashSet authorizedcertprofiles = new HashSet(getCertificateStoreSession().getAuthorizedCertificateProfileIds(admin, CertificateDataBean.CERTTYPE_HARDTOKEN));
	public Collection getAuthorizedHardTokenProfileIds(Admin admin){	  ArrayList returnval = new ArrayList();	  Collection result = null;	  HashSet authorizedcertprofiles = new HashSet(getCertificateStoreSession().getAuthorizedCertificateProfileIds(admin, SecConst.CERTTYPE_HARDTOKEN));	  try{		result = this.hardtokenprofilehome.findAll();		Iterator i = result.iterator();		while(i.hasNext()){		  HardTokenProfileDataLocal next = (HardTokenProfileDataLocal) i.next();		  HardTokenProfile profile = next.getHardTokenProfile();		  if(profile instanceof EIDProfile){		  	if(authorizedcertprofiles.containsAll(((EIDProfile) profile).getAllCertificateProfileIds())){		  	  returnval.add(next.getId());		  	}		  }else{		  	//Implement for other profile types		  }		}	  }catch(FinderException e){}	  return returnval;	} // getAuthorizedHardTokenProfileIds