ecash.kernel
Class RISPart

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

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

The revealed part of the RIS that the buyer send to the seller in order to prove the validity of the note.

Author:
Michel Deriaz
See Also:
Serialized Form

Constructor Summary
RISPart(FullNotesList fullNotesList, BankChoice bankChoice, java.math.BigInteger challengeRIS)
          Creates a RISPart from the information found in the FullNotesList object.
RISPart(java.lang.String value)
          Re-build the object from it's string representation.
 
Method Summary
 java.math.BigInteger[] getValues()
          Returns the revealed part of the RIS.
static RISPart 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 RISPart.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RISPart

public RISPart(FullNotesList fullNotesList,
               BankChoice bankChoice,
               java.math.BigInteger challengeRIS)
Creates a RISPart from the information found in the FullNotesList object. The bank choice designate which note has been chosen and signed by the bank.

Parameters:
fullNotesList - the full notes list
bankChoice - the choice of the bank
challengeRIS - the challenge

RISPart

public RISPart(java.lang.String value)
Re-build the object from it's string representation.

Parameters:
value - the string representation of the object
Method Detail

getValues

public java.math.BigInteger[] getValues()
Returns the revealed part of the RIS.

Returns:
the revealed part of the RIS

load

public static RISPart load(java.lang.String filename)
Re-build the object from it's file representation.

Parameters:
filename - the filename

save

public void save(java.lang.String filename)
Saves this object into it's file representation.

Parameters:
filename - the filename

toString

public java.lang.String toString()
Returns a string representation of this RISPart.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this RISPart