|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.internet.ECashGen | +--ecash.internet.ECashBank
Extension of the ECashGen class which adds specific methods for a bank.
ECashGen
,
ECashBuyer
,
ECashSeller
Field Summary |
Constructor Summary | |
ECashBank(ECashBankListener listener)
Creates a ECashBank and loads the constants with the Const class. |
Method Summary | |
void |
genKey()
Creates a new pair of keys. |
ECashBankState |
getState()
Returns an ECashBankState object. |
void |
run()
|
void |
setState(ECashBankState state)
Initializes the class with the specified state. |
void |
startServer()
Starts the server of the bank, in order to be ready to answer clients requests. |
Methods inherited from class ecash.internet.ECashGen |
checkIfNotesAvailable, close, getKey, getKey, getREGEXP, handshakeClient, handshakeServer, hasBankKey, receiveCrypted, sendCrypted, sendCrypted, setKey, stopServer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ECashBank(ECashBankListener listener)
listener
- the class that implements the ECashBankListener
interfaceMethod Detail |
public ECashBankState getState()
ECashBankState
public void setState(ECashBankState state)
state
- the stategetState()
,
ECashBankState
public void genKey()
public void startServer()
ECashGen.stopServer()
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |