newcertificatesn = StringTools.stripWhitespace(newcertificatesn); if(!hardtokensession.renameHardTokenIssuer(admin, oldalias, newalias, new BigInteger(newcertificatesn,16), certissuersn)) throw new HardTokenIssuerExistsException();
if(informationmemory.authorizedToHardTokenIssuer(oldalias)){ newcertificatesn = StringTools.stripWhitespace(newcertificatesn); if(!hardtokensession.renameHardTokenIssuer(admin, oldalias, newalias, new BigInteger(newcertificatesn,16), certissuersn)) throw new HardTokenIssuerExistsException();  informationmemory.hardTokenIssuersEdited(); }
    public void renameHardTokenIssuer(String oldalias, String newalias, String newcertificatesn, String certissuersn) throws HardTokenIssuerExistsException, RemoteException{      newcertificatesn = StringTools.stripWhitespace(newcertificatesn);      if(!hardtokensession.renameHardTokenIssuer(admin, oldalias, newalias, new BigInteger(newcertificatesn,16), certissuersn))       throw new HardTokenIssuerExistsException();    }