Interface KeyFormat
-
- All Known Implementing Classes:
AbstractSizRdhFormat
,HBCI4JavaFormat
,RDH2Format
,SizRdhDirectFormat
,SizRdhFormat
public interface KeyFormat
Interface fuer die unterstuetzten Schluessel-Formate. Implementierungen muessen der Bean-Spezifikation entsprechen, also einen parameterlosen Konstruktor mit dem Modifier public besitzen.
-
-
Field Summary
Fields Modifier and Type Field Description static int
FEATURE_CREATE
Konstante fuer das Feature "Schluessel erstellen".static int
FEATURE_IMPORT
Konstante fuer das Feature "Schluessel importieren".
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
FEATURE_IMPORT
static final int FEATURE_IMPORT
Konstante fuer das Feature "Schluessel importieren".- See Also:
- Constant Field Values
-
FEATURE_CREATE
static final int FEATURE_CREATE
Konstante fuer das Feature "Schluessel erstellen".- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
Liefert einen sprechenden Namen des Formats.- Returns:
- Sprechender Name.
-
importKey
RDHKey importKey(java.io.File file) throws de.willuhn.util.ApplicationException, de.willuhn.jameica.system.OperationCanceledException
Importiert einen Schluessel. Die Funktion soll nur ein RDHKey-Objekt erzeugen. Die Registrierung des Schluessels in Hibiscus uebernimmt der Aufrufer.- 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.
-
createKey
RDHKey createKey(java.io.File file) throws de.willuhn.util.ApplicationException, de.willuhn.jameica.system.OperationCanceledException
Erzeugt einen neuen Schluessel.- 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
-
hasFeature
boolean hasFeature(int feature)
Prueft, ob das Format das angegebene Feature unterstuetzt.- Parameters:
feature
- das geforderte Feature.- Returns:
- true, wenn es unterstuetzt wird.
-
load
org.kapott.hbci.passport.HBCIPassport load(RDHKey key) throws de.willuhn.util.ApplicationException, de.willuhn.jameica.system.OperationCanceledException
Laedt einen Schluessel.- Parameters:
key
- der Schluessel.- Returns:
- HBCIPassport-Instanz des Schluessels.
- Throws:
de.willuhn.util.ApplicationException
de.willuhn.jameica.system.OperationCanceledException
-
-