ecash.kernel
Class SellerPurseUnit

java.lang.Object
  |
  +--ecash.kernel.SellerPurseUnit
All Implemented Interfaces:
java.io.Serializable

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

This class represents a single item of the SellerPurse class.

Author:
Michel Deriaz
See Also:
SellerPurse, Serialized Form

Constructor Summary
SellerPurseUnit(Note note, java.math.BigInteger challengeRIS, RISPart risPart, java.lang.String buyerNickname)
          Creates a SellerPurseUnit.
 
Method Summary
 java.lang.String getBuyerNickname()
          Returns the nickname of the buyer.
 java.math.BigInteger getChallengeRIS()
          Returns the challenge.
 Note getNote()
          Returns the note.
 RISPart getRISPart()
          Returns the revealed part of the RIS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SellerPurseUnit

public SellerPurseUnit(Note note,
                       java.math.BigInteger challengeRIS,
                       RISPart risPart,
                       java.lang.String buyerNickname)
Creates a SellerPurseUnit.

Parameters:
note - the note
challengeRIS - the challenge
risPart - the revealed part of the RIS
buyerNickname - the nickname provided by the buyer in order to identify the origin of the payment
Method Detail

getNote

public Note getNote()
Returns the note.

Returns:
the note

getChallengeRIS

public java.math.BigInteger getChallengeRIS()
Returns the challenge.

Returns:
the challenge

getRISPart

public RISPart getRISPart()
Returns the revealed part of the RIS.

Returns:
the revealed part of the RIS

getBuyerNickname

public java.lang.String getBuyerNickname()
Returns the nickname of the buyer.

Returns:
the nickname of the buyer