retval = new ApprovalDataText("TOKEN" ,SecConst.TOKENTEXTS[tokenid],true,true);
int tokenindex=0; for(int i=0;i<SecConst.TOKENIDS.length;i++){ if(SecConst.TOKENIDS[i] == tokenid){ tokenindex = i; } } retval = new ApprovalDataText("TOKEN" ,SecConst.TOKENTEXTS[tokenindex],true,true);
	protected ApprovalDataText getTokenName(Admin admin,int tokenid){		ApprovalDataText retval;	    		try {			if(tokenid <= SecConst.TOKEN_SOFT  ){				retval = new ApprovalDataText("TOKEN" ,SecConst.TOKENTEXTS[tokenid],true,true);			}else{						  ServiceLocator locator = ServiceLocator.getInstance();			  IHardTokenSessionLocalHome home = (IHardTokenSessionLocalHome) locator.getLocalHome(IHardTokenSessionLocalHome.COMP_NAME);			  IHardTokenSessionLocal session = home.create();			  String name = session.getHardTokenProfileName(admin, tokenid);			  retval = new ApprovalDataText("TOKEN" ,name,true,false);			}		} catch (CreateException e) {			throw new EJBException(e);		}				return retval;			}