de.willuhn.jameica.hbci.passports.rdh.server
Class RDHKeyImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by de.willuhn.jameica.hbci.passports.rdh.server.RDHKeyImpl
All Implemented Interfaces:
de.willuhn.datasource.GenericObject, RDHKey, java.io.Serializable, java.rmi.Remote

public class RDHKeyImpl
extends java.rmi.server.UnicastRemoteObject
implements RDHKey

Implementierung eines in Hibiscus existierenden RDH-Schluessels.

Author:
willuhn
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RDHKeyImpl(java.io.File file)
          ct.
 
Method Summary
 boolean equals(de.willuhn.datasource.GenericObject other)
           
 java.lang.String getAlias()
          Liefert einen optionalen Alias-Namen fuer den Schluessel.
 java.lang.Object getAttribute(java.lang.String attribute)
           
 java.lang.String[] getAttributeNames()
           
 java.lang.String getFilename()
          Liefert Pfad- und Dateiname des Schluessels.
 java.lang.String getHBCIVersion()
          Liefert die HBCI-Version des Schluessels.
 java.lang.String getID()
           
 de.willuhn.jameica.hbci.rmi.Konto[] getKonten()
          Liefert eine optionale Liste von hart verdrahteten Konten.
 java.lang.String getPrimaryAttribute()
           
 boolean isEnabled()
          Prueft, ob der Schluessel zum aktiven Datenbestand gehoert und somit benutzt werden kann.
 org.kapott.hbci.passport.HBCIPassport load()
          Liefert den Passport des Schluessels.
 void setAlias(java.lang.String alias)
          Speichert einen zusaetzlichen Alias-Namen fuer den Schluessel.
 void setEnabled(boolean enabled)
          Aktiviert oder deaktiviert den Schluessel fuer die Verwendung.
 void setFilename(java.lang.String filename)
          Speichert den Pfad- und Dateinamen des Schluessels.
 void setFormat(KeyFormat format)
          Speichert das Format des Schluessels.
 void setHBCIVersion(java.lang.String version)
          Speichert die zu verwendende HBCI-Version.
 void setKonten(de.willuhn.jameica.hbci.rmi.Konto[] k)
          Speichert eine optionale Liste von festzugeordneten Konten.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RDHKeyImpl

public RDHKeyImpl(java.io.File file)
           throws java.rmi.RemoteException
ct.

Parameters:
file - Die Schluesseldatei.
Throws:
java.rmi.RemoteException
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String attribute)
                              throws java.rmi.RemoteException
Specified by:
getAttribute in interface de.willuhn.datasource.GenericObject
Throws:
java.rmi.RemoteException
See Also:
GenericObject.getAttribute(java.lang.String)

getAttributeNames

public java.lang.String[] getAttributeNames()
                                     throws java.rmi.RemoteException
Specified by:
getAttributeNames in interface de.willuhn.datasource.GenericObject
Throws:
java.rmi.RemoteException
See Also:
GenericObject.getAttributeNames()

getID

public java.lang.String getID()
                       throws java.rmi.RemoteException
Specified by:
getID in interface de.willuhn.datasource.GenericObject
Throws:
java.rmi.RemoteException
See Also:
GenericObject.getID()

getPrimaryAttribute

public java.lang.String getPrimaryAttribute()
                                     throws java.rmi.RemoteException
Specified by:
getPrimaryAttribute in interface de.willuhn.datasource.GenericObject
Throws:
java.rmi.RemoteException
See Also:
GenericObject.getPrimaryAttribute()

equals

public boolean equals(de.willuhn.datasource.GenericObject other)
               throws java.rmi.RemoteException
Specified by:
equals in interface de.willuhn.datasource.GenericObject
Throws:
java.rmi.RemoteException
See Also:
GenericObject.equals(de.willuhn.datasource.GenericObject)

getFilename

public java.lang.String getFilename()
                             throws java.rmi.RemoteException
Description copied from interface: RDHKey
Liefert Pfad- und Dateiname des Schluessels.

Specified by:
getFilename in interface RDHKey
Returns:
Pfad- und Dateiname des Schluessels.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.getFilename()

getHBCIVersion

public java.lang.String getHBCIVersion()
                                throws java.rmi.RemoteException
Description copied from interface: RDHKey
Liefert die HBCI-Version des Schluessels.

Specified by:
getHBCIVersion in interface RDHKey
Returns:
HBCI-Version des Schluessels oder null, wenn noch keine bekannt ist.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.getHBCIVersion()

setHBCIVersion

public void setHBCIVersion(java.lang.String version)
                    throws java.rmi.RemoteException
Description copied from interface: RDHKey
Speichert die zu verwendende HBCI-Version.

Specified by:
setHBCIVersion in interface RDHKey
Parameters:
version - HBCI-Version.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.setHBCIVersion(java.lang.String)

isEnabled

public boolean isEnabled()
                  throws java.rmi.RemoteException
Description copied from interface: RDHKey
Prueft, ob der Schluessel zum aktiven Datenbestand gehoert und somit benutzt werden kann.

Specified by:
isEnabled in interface RDHKey
Returns:
true, wenn er verwendet werden kann.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.isEnabled()

setEnabled

public void setEnabled(boolean enabled)
                throws java.rmi.RemoteException
Description copied from interface: RDHKey
Aktiviert oder deaktiviert den Schluessel fuer die Verwendung.

Specified by:
setEnabled in interface RDHKey
Parameters:
enabled - true, wenn der Schluessel aktiv ist
Throws:
java.rmi.RemoteException
See Also:
RDHKey.setEnabled(boolean)

setFilename

public void setFilename(java.lang.String filename)
                 throws java.rmi.RemoteException
Description copied from interface: RDHKey
Speichert den Pfad- und Dateinamen des Schluessels.

Specified by:
setFilename in interface RDHKey
Parameters:
filename - Pfad- und Dateiname des Schluessels.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.setFilename(java.lang.String)

getAlias

public java.lang.String getAlias()
                          throws java.rmi.RemoteException
Description copied from interface: RDHKey
Liefert einen optionalen Alias-Namen fuer den Schluessel.

Specified by:
getAlias in interface RDHKey
Returns:
Alias-Name.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.getAlias()

setAlias

public void setAlias(java.lang.String alias)
              throws java.rmi.RemoteException
Description copied from interface: RDHKey
Speichert einen zusaetzlichen Alias-Namen fuer den Schluessel.

Specified by:
setAlias in interface RDHKey
Parameters:
alias - Alias-Name.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.setAlias(java.lang.String)

getKonten

public de.willuhn.jameica.hbci.rmi.Konto[] getKonten()
                                              throws java.rmi.RemoteException
Description copied from interface: RDHKey
Liefert eine optionale Liste von hart verdrahteten Konten. Das ist sinnvoll, wenn der User mehrere Konten bei der gleichen Bank mit unterschiedlichen Disketten hat. Dann wuerde bei jeder Bank-Abfrage ein Dialog zur Auswahl der Datei kommen, weils Hibiscus allein anhand BLZ/Kundenkennung nicht mehr unterscheiden kann.

Specified by:
getKonten in interface RDHKey
Returns:
Liste der optionalen Konten oder null BUGZILLA 173 BUGZILLA 314
Throws:
java.rmi.RemoteException
See Also:
RDHKey.getKonten()

setKonten

public void setKonten(de.willuhn.jameica.hbci.rmi.Konto[] k)
               throws java.rmi.RemoteException
Description copied from interface: RDHKey
Speichert eine optionale Liste von festzugeordneten Konten. BUGZILLA 173 BUGZILLA 314

Specified by:
setKonten in interface RDHKey
Parameters:
k - Liste der Konten.
Throws:
java.rmi.RemoteException
See Also:
RDHKey.setKonten(de.willuhn.jameica.hbci.rmi.Konto[])

load

public org.kapott.hbci.passport.HBCIPassport load()
                                           throws java.rmi.RemoteException,
                                                  de.willuhn.util.ApplicationException,
                                                  de.willuhn.jameica.system.OperationCanceledException
Description copied from interface: RDHKey
Liefert den Passport des Schluessels.

Specified by:
load in interface RDHKey
Returns:
der Passport.
Throws:
java.rmi.RemoteException
de.willuhn.util.ApplicationException
de.willuhn.jameica.system.OperationCanceledException
See Also:
RDHKey.load()

setFormat

public void setFormat(KeyFormat format)
               throws java.rmi.RemoteException
Speichert das Format des Schluessels.

Parameters:
format - Format des Schluessels.
Throws:
java.rmi.RemoteException