ecash.kernel
Class Const

java.lang.Object
  |
  +--ecash.kernel.Const

public class Const
extends java.lang.Object

This class loads some parameters from a properties file, and make them available through corresponding static fields.

Author:
Michel Deriaz

Field Summary
static java.lang.String DIR
          Directory used to store the file representation of some objects.
static int KEY_SIZE
          The size of the key (modulus) used by the bank to sign notes.
static int NB_ENVELOPE
          The number of envelopes that are sent to the bank for each note.
static int NB_RIS
          The number of RIS pairs.
static java.lang.String REGEXP
          The regular expression that defines a notes expression.
 
Method Summary
static void load(java.lang.String filenamePart)
          Loads the values from the specified filename.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIR

public static java.lang.String DIR
Directory used to store the file representation of some objects. The value is used by the readFile() and writeFile() methods in the Tools class.

See Also:
Tools.readFile(java.lang.String), Tools.writeFile(java.lang.String, java.lang.String)

KEY_SIZE

public static int KEY_SIZE
The size of the key (modulus) used by the bank to sign notes. Because the keys are generated by the RSA algorithm, this value must be within [512..2048].


NB_ENVELOPE

public static int NB_ENVELOPE
The number of envelopes that are sent to the bank for each note.


NB_RIS

public static int NB_RIS
The number of RIS pairs.


REGEXP

public static java.lang.String REGEXP
The regular expression that defines a notes expression. Can also be used by a program in order to control the user's inputs.

Method Detail

load

public static void load(java.lang.String filenamePart)
Loads the values from the specified filename.

Parameters:
filenamePart - the filename without extension