public void addHardTokenIssuer(String alias, int admingroupid) throws HardTokenIssuerExistsException {
Iterator<AdminGroup> iter = this.informationmemory.getHardTokenIssuingAdminGroups().iterator();
while (iter.hasNext()) {
if (iter.next().getAdminGroupId() == admingroupid) {
if (!hardtokensession.addHardTokenIssuer(admin, alias, admingroupid, new HardTokenIssuer())) {
throw new HardTokenIssuerExistsException();
}
informationmemory.hardTokenDataEdited();
}
}
}