serwer.konto
Class KontoAdministratora

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byserwer.konto.KontoAdministratora
All Implemented Interfaces:
InterfejsKontoAdministratora, java.rmi.Remote, java.io.Serializable

public class KontoAdministratora
extends java.rmi.server.UnicastRemoteObject
implements InterfejsKontoAdministratora

KontoAdministratora udostępnia metody do obsługi konta (w szczególności hasła) administratora systemu.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
KontoAdministratora()
          Tworzy nowy obiekt klasy KontoAdministratora.
 
Method Summary
 boolean autoryzacja(java.lang.String haslo)
          Sprawdza poprawność hasła administratora.
 void zmienHaslo(java.lang.String stare, java.lang.String nowe)
          Zmienia hasło administratora.
 
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

KontoAdministratora

public KontoAdministratora()
                    throws java.rmi.RemoteException
Tworzy nowy obiekt klasy KontoAdministratora.

Throws:
java.rmi.RemoteException - przy problemie konstruowania interfejsu RMI
Method Detail

autoryzacja

public boolean autoryzacja(java.lang.String haslo)
                    throws Wyjatek
Sprawdza poprawność hasła administratora.

Specified by:
autoryzacja in interface InterfejsKontoAdministratora
Parameters:
haslo - sprawdzane hasło
Returns:
true, jeśli hasło jest poprawne
Throws:
Wyjatek - gdy nie uda się wydobyć hasła z bazy

zmienHaslo

public void zmienHaslo(java.lang.String stare,
                       java.lang.String nowe)
                throws Wyjatek
Zmienia hasło administratora.

Specified by:
zmienHaslo in interface InterfejsKontoAdministratora
Parameters:
stare - stare hasło
nowe - nowe hasło
Throws:
Wyjatek - gdy nie uda się wydobyć hasła z bazy

NIIKT, Zespół Gr0No3