Package org.kapott.hbci.manager

Examples of org.kapott.hbci.manager.MsgGen


        boolean              ret=false;
        HBCIPassportInternal mainPassport=passports.getMainPassport();

        if (mainPassport.hasMySigKey()) {
            String msgName = msg.getName();
            MsgGen gen=handlerdata.getMsgGen();
            Node   msgNode = msg.getSyntaxDef(msgName, gen.getSyntax());
            String dontsignAttr = ((Element)msgNode).getAttribute("dontsign");

            if (dontsignAttr.length()==0) {
                try {
                    int numOfPassports=passports.size();
                   
                    // create an empty sighead and sigtail segment for each required signature
                    for (int idx=0;idx<numOfPassports;idx++) {
                        SEG sighead=SEGFactory.getInstance().createSEG("SigHeadUser","SigHead",msgName,numOfPassports-1-idx,gen.getSyntax());
                        SEG sigtail=SEGFactory.getInstance().createSEG("SigTailUser","SigTail",msgName,idx,gen.getSyntax());
                       
                        List<MultipleSyntaxElements> msgelements=msg.getChildContainers();
                        List<SyntaxElement> sigheads=((MultipleSEGs)(msgelements.get(1))).getElements();
                        List<SyntaxElement> sigtails=((MultipleSEGs)(msgelements.get(msgelements.size()-2))).getElements();
View Full Code Here


                ret = false;
            }

            if (ret) {
                String sigheadCode = "HNSHK";
              MsgGen gen=handlerdata.getMsgGen();

                if (!sighead.getCode(gen).equals(sigheadCode))
                    ret = false;
            }
        }
View Full Code Here

        HBCIPassportInternal mainPassport=passports.getMainPassport();
        boolean              ret=false;

        if (mainPassport.hasInstSigKey()) {
            String msgName = msg.getName();
            MsgGen gen=handlerdata.getMsgGen();
            Node msgNode = msg.getSyntaxDef(msgName, gen.getSyntax());
            String dontsignAttr = ((Element)msgNode).getAttribute("dontsign");

            if (dontsignAttr.length()==0) {
                if (hasSig()) {
                    readSigHead();
View Full Code Here

            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

  {
    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

  {
    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

      }
      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

    {
      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

        }
        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

          }
          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.MsgGen

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.