private boolean validToken(int token, boolean usehardtokens, AvailableHardToken[] availabletokens) {
private boolean validToken(int token, boolean usehardtokens) {
    private boolean validToken(int token, boolean usehardtokens,        AvailableHardToken[] availabletokens) {        boolean returnval = false;        returnval = ((token == SecConst.TOKEN_SOFT_BROWSERGEN) ||            (token == SecConst.TOKEN_SOFT_P12) || (token == SecConst.TOKEN_SOFT_PEM) ||            (token == SecConst.TOKEN_SOFT_JKS));        if (!returnval && usehardtokens) {        	//TODO add hard token profiles /*           for (int i = 0; i < availabletokens.length; i++) {                if (token == Integer.parseInt(availabletokens[i].getId())) {                    returnval = true;                    break;                }            } */        }        return returnval;    }