|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.kernel.EnvelopesList
The list of envelopes sended to the bank. The latter will then choose one of them and return it signed to the client.
Constructor Summary | |
EnvelopesList()
Constructs a new list. |
|
EnvelopesList(java.lang.String value)
Re-build the object from it's string representation. |
Method Summary | |
void |
add(java.math.BigInteger envelope)
Adds the specified envelope to the list. |
boolean |
checkRevealed(RevealedNotesList revealedNotesList,
BankChoice bankChoice,
java.lang.String id,
PubKey pubKey)
Returns true if the information used to build all the envelopes except the one chosen by the bank is correct, false otherwise. |
java.math.BigInteger |
get(int index)
Returns the specified envelope. |
static EnvelopesList |
load(java.lang.String filename)
Re-build the object from it's file representation. |
void |
save(java.lang.String filename)
Saves this object into it's file representation. |
java.lang.String |
toString()
Returns a string representation of this EnvelopesList. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnvelopesList()
public EnvelopesList(java.lang.String value)
value
- the string representation of the objectMethod Detail |
public void add(java.math.BigInteger envelope)
envelope
- the envelopepublic java.math.BigInteger get(int index)
index
- the index of the envelope
public boolean checkRevealed(RevealedNotesList revealedNotesList, BankChoice bankChoice, java.lang.String id, PubKey pubKey)
revealedNotesList
- information used to build the envelopes
(except for the one chosen by the bank)bankChoice
- the choice of the bank (all the other envelopes must
be revealed)id
- the identification of the client (bank account)pubKey
- the public key of the bank
public static EnvelopesList load(java.lang.String filename)
filename
- the filenamepublic void save(java.lang.String filename)
filename
- the filenamepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |