Package org.kapott.hbci.manager

Examples of org.kapott.hbci.manager.HBCIKernelImpl


        Properties   data=new Properties();
        data.setProperty("blz",blz);
        data.setProperty("host",HBCIUtils.getHBCIHostForBLZ(blz));
       
        HBCIPassportInternal passport=(HBCIPassportInternal)AbstractHBCIPassport.getInstance("RDHNew",data);
        HBCIKernelImpl       kernel=(HBCIKernelImpl)HBCIKernelFactory.getKernel(null,"210");
        HBCIInstitute inst=new HBCIInstitute(kernel,passport,true);
       
        try {
            inst.fetchBPD();
        } catch (Exception e) {
View Full Code Here


            System.out.print("hbciversion: ");
            System.out.flush();
            hbciversion=new BufferedReader(new InputStreamReader(System.in)).readLine();
        }
       
        HBCIKernelImpl kernel=new HBCIKernelImpl(null,hbciversion);
        MsgGen         msggen=kernel.getMsgGen();
        Document       syntax=msggen.getSyntax();
       
        Element  gvlist=syntax.getElementById("GVRes");
        NodeList gvnodes=gvlist.getChildNodes();
        int      len=gvnodes.getLength();
View Full Code Here

            System.out.print("hbciversion: ");
            System.out.flush();
            hbciversion=new BufferedReader(new InputStreamReader(System.in)).readLine();
        }
       
        HBCIKernelImpl kernel=new HBCIKernelImpl(null,hbciversion);
        MsgGen         msggen=kernel.getMsgGen();
        Document       syntax=msggen.getSyntax();
       
        Element  gvlist=syntax.getElementById("GV");
        NodeList gvnodes=gvlist.getChildNodes();
        int      len=gvnodes.getLength();
View Full Code Here

            System.out.flush();
            hbciversion = new BufferedReader(new InputStreamReader(System.in))
                    .readLine();
        }

        HBCIKernelImpl kernel = new HBCIKernelImpl(null, hbciversion);
        MsgGen         msggen = kernel.getMsgGen();
        Document       syntax = msggen.getSyntax();

        Element  paramlist = syntax.getElementById("Params");
        NodeList paramnodes = paramlist.getChildNodes();
        int      len = paramnodes.getLength();
View Full Code Here

   * @throws Exception
   */
  private Hashtable<String, String> parse() throws Exception
  {
    String data = getFile("msg/bugzilla-1129.txt");
    HBCIKernelImpl kernel = new HBCIKernelImpl(null,"plus");
    kernel.rawNewMsg("DauerList");
   
    MsgGen gen = kernel.getMsgGen();
    MSG msg = MSGFactory.getInstance().createMSG("CustomMsgRes",data,data.length(),gen);

    Hashtable<String,String> ht = new Hashtable<String,String>();
    msg.extractValues(ht);
    return ht;
View Full Code Here

   * @throws Exception
   */
  private Properties getBPD(String file, String version) throws Exception
  {
    String data = getFile(file);
    HBCIKernelImpl kernel = new HBCIKernelImpl(null,version);
    kernel.rawNewMsg("DialogInitAnon");
   
    MsgGen gen = kernel.getMsgGen();
    MSG msg = MSGFactory.getInstance().createMSG("DialogInitAnonRes",data,data.length(),gen);
    Hashtable<String,String> ht = new Hashtable<String,String>();
    msg.extractValues(ht);
     
    // Prefix abschneiden
View Full Code Here

public class TanMediaListTest extends AbstractTest {

  @Test
  public void test() throws Exception {
      String data = getFile("bpd/bpd-tanmedialist.txt");
      HBCIKernelImpl kernel = new HBCIKernelImpl(null,"300");

     
      Rewrite.setData("msgName","CustomMsg");
      // liste der rewriter erzeugen
      String rewriters_st=HBCIUtils.getParam("kernel.rewriter");
      ArrayList<Rewrite> al=new ArrayList<Rewrite>();
      StringTokenizer tok=new StringTokenizer(rewriters_st,",");
      while (tok.hasMoreTokens()) {
          String rewriterName=tok.nextToken().trim();
          if (rewriterName.length()!=0) {
              Class cl=this.getClass().getClassLoader().loadClass("org.kapott.hbci.rewrite.R"+
                                                                  rewriterName);
              Constructor con=cl.getConstructor((Class[])null);
              Rewrite rewriter=(Rewrite)(con.newInstance((Object[])null));
              al.add(rewriter);
          }
      }
      Rewrite[] rewriters= al.toArray(new Rewrite[al.size()]);

      kernel.rawNewMsg("CustomMsg");
     
      MsgGen gen = kernel.getMsgGen();
     
      // alle patches f�r die unverschl�sselte nachricht durchlaufen
      String newmsgstring = data;
     
     
View Full Code Here

  public void test001() throws Exception
  {
    try
    {
      String data = getFile("bpd/bugzilla-1322.txt");
      HBCIKernelImpl kernel = new HBCIKernelImpl(null,"300");
      kernel.rawNewMsg("DialogInitAnon");
     
      MsgGen gen = kernel.getMsgGen();
      MSG msg = MSGFactory.getInstance().createMSG("DialogInitAnonRes",data,data.length(),gen);
      Hashtable<String,String> ht = new Hashtable<String,String>();
      msg.extractValues(ht);

      // Wir checken noch, ob in der Testdatei tatsaechlich ein Segment mit
View Full Code Here

public class AllowedGVTest extends AbstractTest {

  @Test
  public void test() throws Exception {
      String data = getFile("bpd/bpd-allowedgv.txt");
      HBCIKernelImpl kernel = new HBCIKernelImpl(null,"plus");
     
      Rewrite.setData("msgName","Synch");
        // liste der rewriter erzeugen
        String rewriters_st=HBCIUtils.getParam("kernel.rewriter");
        ArrayList<Rewrite> al=new ArrayList<Rewrite>();
        StringTokenizer tok=new StringTokenizer(rewriters_st,",");
        while (tok.hasMoreTokens()) {
            String rewriterName=tok.nextToken().trim();
            if (rewriterName.length()!=0) {
                Class cl=this.getClass().getClassLoader().loadClass("org.kapott.hbci.rewrite.R"+
                                                                    rewriterName);
                Constructor con=cl.getConstructor((Class[])null);
                Rewrite rewriter=(Rewrite)(con.newInstance((Object[])null));
                al.add(rewriter);
            }
        }
        Rewrite[] rewriters= al.toArray(new Rewrite[al.size()]);

      kernel.rawNewMsg("Synch");
     
      MsgGen gen = kernel.getMsgGen();
     
        // alle patches f�r die unverschl�sselte nachricht durchlaufen
      String newmsgstring = data;
        for (int i=0;i<rewriters.length;i++) {
            newmsgstring=rewriters[i].incomingClearText(newmsgstring,gen);
View Full Code Here

  }
 
     @Test
      public void test2() throws Exception {
          String data = getFile("bpd/bpd-allowedgv2.txt");
          HBCIKernelImpl kernel = new HBCIKernelImpl(null,"300");
         
          Rewrite.setData("msgName","Synch");
          // liste der rewriter erzeugen
          String rewriters_st=HBCIUtils.getParam("kernel.rewriter");
          ArrayList<Rewrite> al=new ArrayList<Rewrite>();
          StringTokenizer tok=new StringTokenizer(rewriters_st,",");
          while (tok.hasMoreTokens()) {
              String rewriterName=tok.nextToken().trim();
              if (rewriterName.length()!=0) {
                  Class cl=this.getClass().getClassLoader().loadClass("org.kapott.hbci.rewrite.R"+
                                                                      rewriterName);
                  Constructor con=cl.getConstructor((Class[])null);
                  Rewrite rewriter=(Rewrite)(con.newInstance((Object[])null));
                  al.add(rewriter);
              }
          }
          Rewrite[] rewriters= al.toArray(new Rewrite[al.size()]);

          kernel.rawNewMsg("Synch");
         
          MsgGen gen = kernel.getMsgGen();
         
          // alle patches f�r die unverschl�sselte nachricht durchlaufen
          String newmsgstring = data;
          for (int i=0;i<rewriters.length;i++) {
              newmsgstring=rewriters[i].incomingClearText(newmsgstring,gen);
View Full Code Here

TOP

Related Classes of org.kapott.hbci.manager.HBCIKernelImpl

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.