LogConstants.EVENT_INFO_HARDTOKENDATA, msg);
} catch (Exception e) {
String msg = intres.getLocalizedMessage("hardtoken.tokenexists", tokensn);
logSession.log(admin, bcdn.hashCode(), LogConstants.MODULE_HARDTOKEN, new java.util.Date(), username, null,
LogConstants.EVENT_ERROR_HARDTOKENDATA, msg);
throw new HardTokenExistsException("Tokensn : " + tokensn);
}
} else {
String msg = intres.getLocalizedMessage("hardtoken.tokenexists", tokensn);
logSession.log(admin, bcdn.hashCode(), LogConstants.MODULE_HARDTOKEN, new java.util.Date(), username, null, LogConstants.EVENT_ERROR_HARDTOKENDATA,
msg);
throw new HardTokenExistsException("Tokensn : " + tokensn);
}
log.trace("<addHardToken()");
}