ecash.internet
Class ECashBuyerState

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

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

Represents the state of an ECashBuyer object. It contains the public key of the bank and a BuyerPurse object. Such an object is meant to be stored on a hard-disk as a backup.

Author:
Michel Deriaz
See Also:
ECashBuyer, Serialized Form

Constructor Summary
ECashBuyerState(BuyerPurse buyerPurse, PubKey pubKey)
          Constructs an ECashBuyerState.
 
Method Summary
 BuyerPurse getBuyerPurse()
          Returns the buyer purse.
 PubKey getPubKey()
          Returns the public key of the bank.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECashBuyerState

public ECashBuyerState(BuyerPurse buyerPurse,
                       PubKey pubKey)
Constructs an ECashBuyerState.

Parameters:
buyerPurse - the buyer purse
pubKey - the public key of the bank
Method Detail

getBuyerPurse

public BuyerPurse getBuyerPurse()
Returns the buyer purse.

Returns:
the buyer purse

getPubKey

public PubKey getPubKey()
Returns the public key of the bank.

Returns:
the public key of the bank