de.willuhn.jameica.hbci.passports.rdh.keyformat
Class HBCI4JavaFormat

java.lang.Object
  extended by de.willuhn.jameica.hbci.passports.rdh.keyformat.HBCI4JavaFormat
All Implemented Interfaces:
KeyFormat
Direct Known Subclasses:
RDH2Format

public class HBCI4JavaFormat
extends java.lang.Object
implements KeyFormat

Implementierung des Schluesselformats von HBCI4Java.


Field Summary
 
Fields inherited from interface de.willuhn.jameica.hbci.passports.rdh.keyformat.KeyFormat
FEATURE_CREATE, FEATURE_IMPORT
 
Constructor Summary
HBCI4JavaFormat()
           
 
Method Summary
 RDHKey createKey(java.io.File file)
          Erzeugt einen neuen Schluessel.
 java.lang.String getName()
          Liefert einen sprechenden Namen des Formats.
 boolean hasFeature(int feature)
          Prueft, ob das Format das angegebene Feature unterstuetzt.
 RDHKey importKey(java.io.File file)
          Importiert einen Schluessel.
 org.kapott.hbci.passport.HBCIPassport load(RDHKey key)
          Laedt einen Schluessel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBCI4JavaFormat

public HBCI4JavaFormat()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: KeyFormat
Liefert einen sprechenden Namen des Formats.

Specified by:
getName in interface KeyFormat
Returns:
Sprechender Name.
See Also:
KeyFormat.getName()

hasFeature

public boolean hasFeature(int feature)
Description copied from interface: KeyFormat
Prueft, ob das Format das angegebene Feature unterstuetzt.

Specified by:
hasFeature in interface KeyFormat
Parameters:
feature - das geforderte Feature.
Returns:
true, wenn es unterstuetzt wird.
See Also:
KeyFormat.hasFeature(int)

importKey

public RDHKey importKey(java.io.File file)
                 throws de.willuhn.util.ApplicationException,
                        de.willuhn.jameica.system.OperationCanceledException
Description copied from interface: KeyFormat
Importiert einen Schluessel. Die Funktion soll nur ein RDHKey-Objekt erzeugen. Die Registrierung des Schluessels in Hibiscus uebernimmt der Aufrufer.

Specified by:
importKey in interface KeyFormat
Parameters:
file - die Schluesseldatei.
Returns:
der importierte Schluessel.
Throws:
de.willuhn.util.ApplicationException - Fehler.
de.willuhn.jameica.system.OperationCanceledException - wenn der Import abgebrochen werden soll.
See Also:
KeyFormat.importKey(java.io.File)

createKey

public RDHKey createKey(java.io.File file)
                 throws de.willuhn.util.ApplicationException,
                        de.willuhn.jameica.system.OperationCanceledException
Description copied from interface: KeyFormat
Erzeugt einen neuen Schluessel.

Specified by:
createKey in interface KeyFormat
Parameters:
file - Ziel-Datei, in der der Schluessel erzeugt werden soll.
Returns:
der neue Schluessel.
Throws:
de.willuhn.util.ApplicationException
de.willuhn.jameica.system.OperationCanceledException
See Also:
KeyFormat.createKey(java.io.File)

load

public org.kapott.hbci.passport.HBCIPassport load(RDHKey key)
                                           throws de.willuhn.util.ApplicationException,
                                                  de.willuhn.jameica.system.OperationCanceledException
Description copied from interface: KeyFormat
Laedt einen Schluessel.

Specified by:
load in interface KeyFormat
Parameters:
key - der Schluessel.
Returns:
HBCIPassport-Instanz des Schluessels.
Throws:
de.willuhn.util.ApplicationException
de.willuhn.jameica.system.OperationCanceledException
See Also:
KeyFormat.load(de.willuhn.jameica.hbci.passports.rdh.rmi.RDHKey)