public class RDHKeyFactory
extends java.lang.Object
Constructor | Description |
---|---|
RDHKeyFactory() |
Modifier and Type | Method | Description |
---|---|---|
static void |
addKey(RDHKey key) |
Fuegt den Key zur Liste der bekannten Schluessel hinzu.
|
static boolean |
createKey(java.io.File f) |
Erstellt einen neuen Schluessel from Scratch.
|
static RDHKey |
findByKonto(Konto konto) |
Sucht nach dem Schluessel.
|
static KeyFormat[] |
getKeyFormats(int neededFeature) |
Durchsucht den Classpath nach unterstuetzten Schluesselformaten.
|
static de.willuhn.datasource.GenericIterator |
getKeys() |
Liefert die Liste der bekannten Schluessel.
|
static void |
importKey(java.io.File f) |
Versucht, die angegebene Datei zu importieren.
|
static void |
removeKey(RDHKey key) |
Entfernt einen Key aus der Liste der bekannten Schluessel.
|
public static KeyFormat[] getKeyFormats(int neededFeature)
neededFeature
- das benoetigte Feature der Datei.KeyFormat.FEATURE_CREATE
,
KeyFormat.FEATURE_IMPORT
public static void importKey(java.io.File f)
f
- zu importierender Schluessel.public static boolean createKey(java.io.File f)
f
- die Schluesseldatei.public static RDHKey findByKonto(Konto konto) throws java.rmi.RemoteException, de.willuhn.util.ApplicationException, de.willuhn.jameica.system.OperationCanceledException
konto
- das Konto, zu dem der Schluessel gesucht wird.java.rmi.RemoteException
de.willuhn.util.ApplicationException
de.willuhn.jameica.system.OperationCanceledException
public static de.willuhn.datasource.GenericIterator getKeys() throws java.rmi.RemoteException
java.rmi.RemoteException
public static void addKey(RDHKey key) throws java.lang.Exception
key
- hinzuzufuegender Schluessel.java.lang.Exception
public static void removeKey(RDHKey key) throws de.willuhn.util.ApplicationException
key
- zu entfernender Schluessel.de.willuhn.util.ApplicationException