Package org.kapott.hbci.passport

Examples of org.kapott.hbci.passport.AbstractHBCIPassport


    {
      Logger.warn("expected object type AbstractHBCIPassport but was " + context);
      return;
    }

    AbstractHBCIPassport hbciPassport = (AbstractHBCIPassport) context;
   
    Object o = hbciPassport.getPersistentData(PassportHandle.CONTEXT_USERID_CHANGED);
    if (o == null)
    {
      Logger.warn("no changed customer data in persistent data of passport found");
      return;
    }

    try
    {
      String changes = o.toString();
      int pos = changes.indexOf("|");
      if (pos == -1)
      {
        Logger.warn("changes did not contain userId|custId");
        return;
      }
     
      String userId = changes.substring(0,pos);
      String custId = changes.substring(pos+1);
      if (userId.length() == 0)
      {
        Logger.warn("no userId found");
        return;
      }
      if (custId.length() == 0)
      {
        Logger.warn("no custId found");
        return;
      }
     
      String custOld = hbciPassport.getCustomerId();
      String userOld = hbciPassport.getUserId();

      String text = i18n.tr("Die Bank hat mitgeteilt, dass sich die Benutzer- und Kundenkennung Ihres\n" +
                            "Bank-Zugangs ge�ndert hat. Die neuen Zugangsdaten lauten:\n\n" +
                            "  Alte Kundenkennung: {0}\n" +
                            "  Neue Kundenkennung: {1}\n\n" +
View Full Code Here


      config.setBezeichnung((String) getBezeichnung().getValue());
      config.setShowTan(((Boolean)getShowTan().getValue()).booleanValue());
      config.setHBCIVersion(version);
      config.setPort((Integer)getPort().getValue());
     
      AbstractHBCIPassport p = (AbstractHBCIPassport)config.getPassport();
      PassportChangeRequest change = new PassportChangeRequest(p,(String)getCustomerId().getValue(),(String)getUserId().getValue());
      new PassportChange().handleAction(change);
     
      if (getHBCIVersion().hasChanged())
      {
        // Das triggert beim naechsten Verbindungsaufbau
        // HBCIHandler.<clinit>
        // -> HBCIHandler.registerUser()
        // -> HBCIUser.register()
        // -> HBCIUser.updateUserData()
        // -> HBCIUser.fetchSysId() - und das holt die BPD beim naechsten mal ueber einen nicht-anonymen Dialog
        Logger.info("hbci version has changed to \"" + version + "\" - set sysId to 0 to force BPD reload on next connect");
        Properties props = p.getBPD();
        if (props != null)
        {
          props.remove("BPA.version");
          p.syncSysId();
        }
      }


      PinTanConfigFactory.store(config);
View Full Code Here

        ((HBCICallbackSWT)callback).setCurrentHandle(this);

      hbciPassport = config.getPassport();

      {
        AbstractHBCIPassport ap = (AbstractHBCIPassport) hbciPassport;
       
        // Wir speichern die verwendete PIN/TAN-Config im Passport. Dann wissen wir
        // spaeter in den HBCI-Callbacks noch, aus welcher Config der Passport
        // erstellt wurde. Wird z.Bsp. vom Payment-Server benoetigt.
        ap.setPersistentData(CONTEXT_CONFIG,config);
       
        String cannationalacc = config.getCustomProperty("cannationalacc");
        if (cannationalacc != null)
          ap.setPersistentData("cannationalacc",cannationalacc);
      }

      String hbciVersion = config.getHBCIVersion();
      if (hbciVersion == null || hbciVersion.length() == 0)
        hbciVersion = "300";
View Full Code Here

TOP

Related Classes of org.kapott.hbci.passport.AbstractHBCIPassport

Copyright © 2018 www.massapicom. 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.