certificatesn = StringTools.stripWhitespace(certificatesn); if(!hardtokensession.addHardTokenIssuer(admin, alias, new BigInteger(certificatesn,16), certissuerdn, new HardTokenIssuer())) throw new HardTokenIssuerExistsException();
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.hardTokenIssuersEdited(); }
    public void addHardTokenIssuer(String alias, String certificatesn, String certissuerdn) throws HardTokenIssuerExistsException, RemoteException{      certificatesn = StringTools.stripWhitespace(certificatesn);      if(!hardtokensession.addHardTokenIssuer(admin, alias, new BigInteger(certificatesn,16), certissuerdn, new HardTokenIssuer()))        throw new HardTokenIssuerExistsException();    }