serwer.konto
Class KontoAdministratora
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
serwer.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
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
KontoAdministratora
public KontoAdministratora()
throws java.rmi.RemoteException
- Tworzy nowy obiekt klasy KontoAdministratora.
- Throws:
java.rmi.RemoteException
- przy problemie konstruowania interfejsu RMI
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łonowe
- nowe hasło
- Throws:
Wyjatek
- gdy nie uda się wydobyć hasła z bazy