public FieldStorageSchemeImpl(int digestSize,String algorithm) throws Exception {
  this.messageDigest=MessageDigest.getInstance(algorithm);
  this.digestLock=new Object();
  this.random=new SecureRandom();
  this.digestSize=digestSize;
}

public FieldStorageSchemeImpl ( int digestSize , String algorithm ) throws Exception { this . messageDigest = MessageDigest . getInstance ( algorithm ) ; this . digestLock = new Object ( ) ; this . random = new SecureRandom ( ) ; this . digestSize = digestSize ; }
creates a new instance of this field storage scheme .
