Package org.kapott.hbci.exceptions

Examples of org.kapott.hbci.exceptions.InvalidPassphraseException


                    } catch (StreamCorruptedException e) {
                        passportKey=null;
                       
                        retries--;
                        if (retries<=0)
                            throw new InvalidPassphraseException();
                    }
                   
                    if (o!=null)
                        break;
                }
View Full Code Here


                    } catch (StreamCorruptedException e) {
                        setPassportKey(null);
                       
                        retries--;
                        if (retries<=0)
                            throw new InvalidPassphraseException();
                    }
                   
                    if (o!=null)
                        break;
                }
View Full Code Here

            byte[]  storedMac=macfield.getMac();
            byte[]  calculatedMac=calculateMAC();
            boolean macOK=Arrays.equals(storedMac,calculatedMac);
            HBCIUtils.log("MAC field ok: "+macOK,HBCIUtils.LOG_DEBUG);
            if (!macOK) {
                throw new InvalidPassphraseException();
            }
        } else {
            HBCIUtils.log("RDH-2/10-file does not contain a MAC field - ignoring this for now",HBCIUtils.LOG_ERR);
        }
View Full Code Here

                       
                        resetPassphrase();

                        retries--;
                        if (retries<=0)
                            throw new InvalidPassphraseException();
                    } finally {
                        if (ci!=null)
                            ci.close();
                    }
View Full Code Here

            catch (StreamCorruptedException e1)
            {
              setPassportKey(null); // Passwort resetten
              retries--;
              if (retries<=0)
                throw new InvalidPassphraseException();
            }
            catch (Exception e2)
            {
              throw new HBCI_Exception(HBCIUtilsInternal.getLocMsg("EXCMSG_PASSPORT_READERR"),e2);
            }
View Full Code Here

                    is = new ObjectInputStream(new CipherInputStream(new FileInputStream(file), cipher));
                } catch (StreamCorruptedException e) {
                    setPassportKey(null); // Passwort resetten
                    retries--;
                    if (retries<=0)
                        throw new InvalidPassphraseException();
                } catch (Exception e) {
                    throw new HBCI_Exception(HBCIUtilsInternal.getLocMsg("EXCMSG_PASSPORT_READERR"), e);
                }
               
                // wir habens
View Full Code Here

                    } catch (StreamCorruptedException e) {
                        passportKey=null;
                       
                        retries--;
                        if (retries<=0)
                            throw new InvalidPassphraseException();
                    }
                   
                    if (o!=null)
                        break;
                }
View Full Code Here

        String text = i18n.tr("Bitte senden Sie den INI-Brief an Ihre Bank und warten Sie auf die Freischaltung durch die Bank.");
        Application.getMessagingFactory().sendMessage(new StatusBarMessage(text,StatusBarMessage.TYPE_ERROR));
        throw new ApplicationException(text);
      }
     
      InvalidPassphraseException ipe = (InvalidPassphraseException) HBCIProperties.getCause(e,InvalidPassphraseException.class);
      if (ipe != null)
      {
        Logger.write(Level.TRACE,"password for key file seems to be wrong",e);
        String text = i18n.tr("Das Passwort f�r die Schl�sseldatei ist falsch.");
        Application.getMessagingFactory().sendMessage(new StatusBarMessage(text,StatusBarMessage.TYPE_ERROR));
View Full Code Here

                    } catch (SAXException e) {
                        passportKey=null;

                        retries--;
                        if (retries<=0)
                            throw new InvalidPassphraseException();
                    } finally {
                        if (ci!=null)
                            ci.close();
                    }
View Full Code Here

TOP

Related Classes of org.kapott.hbci.exceptions.InvalidPassphraseException

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.