Examples of PassportHandle


Examples of de.willuhn.jameica.hbci.passport.PassportHandle

            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.passport.PassportHandle

            {
            }
          };
          Logger.addTarget(target);

          PassportHandle handle = null;
          if (context instanceof Passport)
            handle = ((Passport)context).getHandle();
          else
            handle = (PassportHandle) context;
          handler = handle.open();
          handle.close(); // nein, nicht im finally, denn wenn das Oeffnen
                          // fehlschlaegt, ist nichts zum Schliessen da ;)

          Logger.flush();
          monitor.setStatus(ProgressMonitor.STATUS_DONE);
          monitor.setPercentComplete(100);
          monitor.setStatusText(i18n.tr("Sicherheits-Medium erfolgreich getestet."));
          Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Sicherheits-Medium erfolgreich getestet."), StatusBarMessage.TYPE_SUCCESS));
          removeTarget(target);
         
          if (!Application.getCallback().askUser(i18n.tr("Test erfolgreich. Konten automatisch anlegen?")))
            return;

          try
          {
            new KontoMerge().handleAction(handle.getKonten());
            // Wir starten die aktuelle View neu, damit die Liste der Konten
            // gleich aktualisiert wird
            GUI.startView(GUI.getCurrentView().getClass(),GUI.getCurrentView().getCurrentObject());
          }
          catch (Exception e)
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.PassportHandle

        // lokale Variablen
        ProgressMonitor monitor = HBCISynchronizeBackend.this.worker.getMonitor();
        ////////////////////////////////////////////////////////////////////

        monitor.setStatusText(i18n.tr("Erzeuge HBCI-Handle"));
        PassportHandle handle = this.passport.getHandle();

        if (handle == null)
          throw new ApplicationException(i18n.tr("Fehler beim Erzeugen der HBCI-Verbindung"));

        monitor.addPercentComplete(1);
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.