Java XML Digital Signature (JSR 105) API
Sample Applications

Implementation Version: 1.0 EA2

Building and Running the Sample Applications With Ant

In order to run the sample applications using the supplied Ant build.xml files, simply follow these steps after you've installed JWSDP 1.5:
For Solaris/Linux:
  1. % export JAVA_HOME=<your J2SE installation directory>
  2. % export JWSDP_HOME=<your JWSDP1.5 installation directory>
  3. % export ANT_HOME=$JWSDP_HOME/apache-ant
  4. % export PATH=$ANT_HOME/bin:$PATH
  5. % cd $JWSDP_HOME/xmldsig/samples/<sample-name>
For WindowsNT/2000/XP:
  1. > set JAVA_HOME=<your J2SE installation directory>
  2. > set JWSDP_HOME=<your JWSDP1.5 installation directory>
  3. > set ANT_HOME=%JWSDP_HOME%\apache-ant
  4. > set PATH=%ANT_HOME%\bin;%PATH%
  5. > cd %JWSDP_HOME%\xmldsig\samples\<sample-name>
Further details for each sample application are available in the README file located under each sample directory.

List of Sample Applications

samples/gendetached
This sample application demonstrates how to generate a detached XML Signature using the JSR 105 API.
 
samples/genenveloped
This sample application demonstrates how to generate an enveloped XML Signature using the JSR 105 API.
 
samples/genenveloping
This sample application demonstrates how to generate an enveloping XML Signature using the JSR 105 API.
 
samples/validate
This sample application demonstrates how to validate an XML Signature using the JSR 105 API.