|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.internet.ECashGen | +--ecash.internet.ECashBuyer
Extension of the ECashGen class which adds specific methods for a buyer.
ECashGen
,
ECashBank
,
ECashSeller
Field Summary |
Constructor Summary | |
ECashBuyer(ECashBuyerListener listener)
Creates an ECashBuyer and loads the constants with the Const class. |
Method Summary | |
CreditDebitReport |
buy(java.lang.String bankAddress,
java.lang.String bankAccount,
char[] password,
java.lang.String notesExp)
Creates some notes and ask the bank to sign them. |
java.util.Vector |
getAmountList()
Returns the list of all the amounts of the different notes. |
ECashBuyerState |
getState()
Returns an ECashBuyerState object. |
int |
pay(java.lang.String sellerAddress,
java.lang.String nickname,
java.lang.String notesExp)
Sends some notes to a seller. |
void |
setState(ECashBuyerState state)
Initializes the class with the specified state. |
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 ECashBuyer(ECashBuyerListener listener)
listener
- the class that implements the ECashBuyerListener
interfaceMethod Detail |
public ECashBuyerState getState()
ECashBuyerState
public void setState(ECashBuyerState state)
state
- the stategetState()
,
ECashBuyerState
public java.util.Vector getAmountList()
public CreditDebitReport buy(java.lang.String bankAddress, java.lang.String bankAccount, char[] password, java.lang.String notesExp)
bankAddress
- the address of the bank, for example
"124.123.132.233"bankAccount
- the account numberpassword
- the password of the accountnotesExp
- the notes expression describing which notes must be
created.
CreditDebitReport
public int pay(java.lang.String sellerAddress, java.lang.String nickname, java.lang.String notesExp)
sellerAddress
- the address of the seller, for example
"124.123.132.233"nickname
- the name which will be sended, allowing the seller to
identify the paiement.notesExp
- the notes expression describing which notes must be
sended.
ECashGen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |