ecash.internet
Class ECashSellerState

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

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

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

Author:
Michel Deriaz
See Also:
ECashSeller, Serialized Form

Constructor Summary
ECashSellerState(SellerPurse sellerPurse, PubKey pubKey)
          Constructs an ECashSellerState.
 
Method Summary
 PubKey getPubKey()
          Returns the public key of the bank.
 SellerPurse getSellerPurse()
          Returns the seller purse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECashSellerState

public ECashSellerState(SellerPurse sellerPurse,
                        PubKey pubKey)
Constructs an ECashSellerState.

Parameters:
sellerPurse - the seller purse
pubKey - the public key of the bank
Method Detail

getSellerPurse

public SellerPurse getSellerPurse()
Returns the seller purse.

Returns:
the seller purse

getPubKey

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

Returns:
the public key of the bank