ecash.internet
Class ECashBankState

java.lang.Object
  |
  +--ecash.internet.ECashBankState
All Implemented Interfaces:
java.io.Serializable

public class ECashBankState
extends java.lang.Object
implements java.io.Serializable

Represents the state of an ECashBank object. It contains it's key ring (private and public keys) and the list of all the former desposited notes, in order to avoid that people use several times the same note. Such an object is meant to be stored on a hard-disk as a backup.

Author:
Michel Deriaz
See Also:
ECashBank, Serialized Form

Constructor Summary
ECashBankState(KeyRing keyRing, UsedNotesList usedNotesList)
          Constructs an ECashBankState.
 
Method Summary
 KeyRing getKeyRing()
          Gets the key ring.
 UsedNotesList getUsedNotesList()
          Gets the object containing all the former desposited notes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECashBankState

public ECashBankState(KeyRing keyRing,
                      UsedNotesList usedNotesList)
Constructs an ECashBankState.

Parameters:
keyRing - the key ring
usedNotesList - an object containing all the former desposited notes
Method Detail

getKeyRing

public KeyRing getKeyRing()
Gets the key ring.

Returns:
the key ring

getUsedNotesList

public UsedNotesList getUsedNotesList()
Gets the object containing all the former desposited notes.

Returns:
the object containing all the former desposited notes