getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENPROFILEDATA,"Error editing hard token profile " + name + ".");
getLogSession().log(admin, admin.getCaId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENPROFILEDATA,"Error editing hard token profile " + name + ".");
	public void changeHardTokenProfile(Admin admin, String name, HardTokenProfile profile){	   debug(">changeHardTokenProfile(name: " + name + ")");	   boolean success = false;	   try{		 HardTokenProfileDataLocal htp = hardtokenprofilehome.findByName(name);		 htp.setHardTokenProfile(profile);		 success = true;	   }catch(FinderException e){}	   if(success)		 getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENPROFILEDATA,"Hard token profile " +  name + " edited.");	   else		 getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENPROFILEDATA,"Error editing hard token profile " + name + ".");	   debug("<changeHardTokenProfile()");	} // changeHardTokenProfile