Examples of PassportHandleImpl


Examples of de.willuhn.jameica.hbci.passports.ddv.server.PassportHandleImpl

            if (terminals != null && terminals.size() > 0)
            {
              CardTerminal terminal = terminals.get(0);
              String name = terminal.getName();
              temp.setPCSCName(name);
              PassportHandle handle = new PassportHandleImpl(temp);
              handle.open();
              handle.close(); // nein, nicht im finally, denn wenn das Oeffnen

              // Passport liess sich oeffnen und schliessen. Dann haben
              // wir den Kartenleser gefunden.
              monitor.log("  " + name + " " + i18n.tr("gefunden"));
              monitor.setStatusText(i18n.tr("OK. Kartenleser \"{0}\" gefunden",name));
              monitor.setStatus(ProgressMonitor.STATUS_DONE);
              monitor.setPercentComplete(100);
             
              // Wir kopieren die temporaere Config noch in eine richtige
              DDVConfig config = temp.copy();
              config.setName(name);
              return config;
            }
          }
          catch (ApplicationException ae)
          {
            monitor.log("  " + ae.getMessage());
          }
          catch (Exception e)
          {
            Logger.error("unable to create ddv config",e);
          }
          finally
          {
            temp.setPCSCName(null); // muessen wir wieder zuruecksetzen
          }
         
          // Wir haben wohl nichts via PC/SC gefunden
          monitor.log("  " + i18n.tr("  nicht gefunden"));
          continue;
        }

        // Wir probieren alle Ports durch
        for (String port:DDVConfig.PORTS)
        {
          if (task.isInterrupted())
            throw new OperationCanceledException();
         
          monitor.addPercentComplete(factor);
          monitor.log("  " + i18n.tr("Port {0}",port));
               
          temp.setPort(port);

          try
          {
            PassportHandle handle = new PassportHandleImpl(temp);
            handle.open();
            handle.close(); // nein, nicht im finally, denn wenn das Oeffnen
                            // fehlschlaegt, ist nichts zum Schliessen da ;)

            // Passport liess sich oeffnen und schliessen. Dann haben
            // wir den Kartenleser gefunden.
            monitor.log("  " + i18n.tr("gefunden"));
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.ddv.server.PassportHandleImpl

      // auf der Karte haben. Auf diese Weise hier koennen
      // wir aber die Daten ohne Bank-Kontakt aendern
      AbstractPlugin plugin = Application.getPluginLoader().getPlugin(HBCI.class);
      HBCICallback callback = ((HBCI)plugin).getHBCICallback();
      if (callback != null && (callback instanceof HBCICallbackSWT))
        ((HBCICallbackSWT)callback).setCurrentHandle(new PassportHandleImpl(getConfig()));

      passport = DDVConfigFactory.createPassport(getConfig());

      new PassportPropertyDialog(PassportPropertyDialog.POSITION_CENTER,passport).open();
    }
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.ddv.server.PassportHandleImpl

    if (!handleStore())
      return;

    try
    {
      new PassportTest().handleAction(new PassportHandleImpl(getConfig()));
    }
    catch (ApplicationException ae)
    {
      Application.getMessagingFactory().sendMessage(new StatusBarMessage(ae.getMessage(),StatusBarMessage.TYPE_ERROR));
    }
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.ddv.server.PassportHandleImpl

          // auf der Karte haben. Auf diese Weise hier koennen
          // wir aber die Daten ohne Bank-Kontakt aendern
          AbstractPlugin plugin = Application.getPluginLoader().getPlugin(HBCI.class);
          HBCICallback callback = ((HBCI)plugin).getHBCICallback();
          if (callback != null && (callback instanceof HBCICallbackSWT))
            ((HBCICallbackSWT)callback).setCurrentHandle(new PassportHandleImpl(getConfig()));

          passport = DDVConfigFactory.createPassport(getConfig());

          AccountContainerDialog d = new AccountContainerDialog(passport);
          AccountContainer container = (AccountContainer) d.open();
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.pintan.server.PassportHandleImpl

    if (!handleStore())
      return;

    try
    {
      new PassportTest().handleAction(new PassportHandleImpl(getConfig()));
    }
    catch (ApplicationException ae)
    {
      GUI.getStatusBar().setErrorText(ae.getMessage());
    }
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.rdh.server.PassportHandleImpl

    {
      ////////////////////////////////////////////////////////////////////////
      // Erst laden wir den SizRDH-Schluessel
      Logger.info("loading sizrdh key");
      if (callback != null && (callback instanceof HBCICallbackSWT))
        ((HBCICallbackSWT)callback).setCurrentHandle(new PassportHandleImpl());
     
      // Abfrage des Passwortes erzwingen
      settings.setAttribute("hbcicallback.askpassphrase.force",true);
     
      HBCIUtils.setParam("client.passport.SIZRDHFile.filename",file.getAbsolutePath());
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.rdh.server.PassportHandleImpl

      Logger.error("load key " + filename);
     
      HBCI plugin = (HBCI) Application.getPluginLoader().getPlugin(HBCI.class);
      callback = plugin.getHBCICallback();
      if (callback != null && (callback instanceof HBCICallbackSWT))
        ((HBCICallbackSWT)callback).setCurrentHandle(new PassportHandleImpl());

      HBCIUtils.setParam("client.passport.SIZRDHFile.filename",filename);
      HBCIUtils.setParam("client.passport.SIZRDHFile.libname",getRDHLib());
      HBCIUtils.setParam("client.passport.SIZRDHFile.init","1");
      return AbstractHBCIPassport.getInstance("SIZRDHFile");
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.rdh.server.PassportHandleImpl

      }
     
      HBCI plugin = (HBCI) Application.getPluginLoader().getPlugin(HBCI.class);
      callback = plugin.getHBCICallback();
      if (callback != null && (callback instanceof HBCICallbackSWT))
        ((HBCICallbackSWT)callback).setCurrentHandle(new PassportHandleImpl());
      else
        Logger.warn("unable to register current handle, callback: " + callback);
     
      String type = getPassportType();
      HBCIUtils.setParam("client.passport.default",type); // ist eigentlich nicht noetig
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.rdh.server.PassportHandleImpl

      // Das wuerde bewirken, dass Hibiscus ein zufaelliges neues Passwort erzeugt,
      // welches der User aber nicht mehr kennt.
      AbstractPlugin plugin = Application.getPluginLoader().getPlugin(HBCI.class);
      callback = ((HBCI)plugin).getHBCICallback();
      if (callback != null && (callback instanceof HBCICallbackSWT))
        ((HBCICallbackSWT)callback).setCurrentHandle(new PassportHandleImpl());
     
      passport.changePassphrase();
     
      // Passwort-Cache leeren
      DialogFactory.clearPINCache(passport);
View Full Code Here

Examples of de.willuhn.jameica.hbci.passports.rdh.server.PassportHandleImpl

    if (!handleStore())
      return;

    try
    {
      new PassportTest().handleAction(new PassportHandleImpl(getKey()));
    }
    catch (ApplicationException ae)
    {
      GUI.getStatusBar().setErrorText(ae.getMessage());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.