How to use the evaluation program

After building, there is a program named testtool under the bin folder, this program is used to evaluate the performance of xmlsecurity component.

After installation, you need do following step to launch the evaluation.

1) create a temporary folder

2) copy the xsecsim.rdb (in <OUTPUT>/bin folder) to the temporary folder

3) copy services.rdb and types.rdb from the <OpenOffice>/program folder to the temporary folder, 

4) in the temporary folder, merge both the types.rdb and the xsecsim.rdb into the services.rdb.

5) register the dynamic library xsec_sim, the xsec_sim.rdb (in <OUTPUT>/bin folder) and the jflatfilter.jar (in <OUTPUT>/class folder) into OpenOffice as a new component.

6) copy all dynamic library files from the <OpenOffice>/program folder to the temporary folder

7) copy testtool program into the temporary folder

8) start OpenOffice with the parameter "-accept=socket,host=0,port=2002;urp;"

9) run the testtool program, this program has 4 parameters: the java crypto token file, the nss crypto token folder, the export file list and the import file list.

Here, the export file list include all files need to be signed, and the import file list include all files need to be verified.

10) stop OpenOffice

11) remove the new component from OpenOffice

12) remove the temporary folder


The /xmlsecurity/tools/examples/evaluate_win.bat provide the portrait of this procedure under 4NT in windows platform. If you want to use it, you need to configure all marcos to your local setting.