public void addHardTokenIssuer(String alias, String certificatesn, String certissuerdn) throws HardTokenIssuerExistsException, RemoteException{ if(this.informationmemory.getAuthorizedCAIds().contains(new Integer((CertTools.stringToBCDNString(certissuerdn)).hashCode()))){ certificatesn = StringTools.stripWhitespace(certificatesn); if(!hardtokensession.addHardTokenIssuer(admin, alias, new BigInteger(certificatesn,16), certissuerdn, new HardTokenIssuer())) throw new HardTokenIssuerExistsException(); informationmemory.hardTokenDataEdited(); }
public void addHardTokenIssuer(String alias, int admingroupid) throws HardTokenIssuerExistsException, RemoteException{ Iterator iter = this.informationmemory.getHardTokenIssuingAdminGroups().iterator(); while(iter.hasNext()){ if(((AdminGroup) iter.next()).getAdminGroupId() == admingroupid){ if(!hardtokensession.addHardTokenIssuer(admin, alias, admingroupid, new HardTokenIssuer())) throw new HardTokenIssuerExistsException(); informationmemory.hardTokenDataEdited(); } }
    public void addHardTokenIssuer(String alias, String certificatesn, String certissuerdn) throws HardTokenIssuerExistsException, RemoteException{      if(this.informationmemory.getAuthorizedCAIds().contains(new Integer((CertTools.stringToBCDNString(certissuerdn)).hashCode()))){        certificatesn = StringTools.stripWhitespace(certificatesn);              if(!hardtokensession.addHardTokenIssuer(admin, alias, new BigInteger(certificatesn,16), certissuerdn, new HardTokenIssuer()))          throw new HardTokenIssuerExistsException();        informationmemory.hardTokenDataEdited();      }      }