![[XML Security Suite]](xmlsec.gif)
This package is a sample implementation for Digital Signatures for XML. This requires JDK1.2.
E:\xss4j> keytool -genkey -dname "CN=cName, OU=orgUnit, O=org, L=city, S=state, C=countryCode" -keypass your-keypassword -storepass your-storepassword -alias your-alias
id" attibute of Signer element :
yagisita -> your-aliasvalue" attribute of KeyStorePath element :
C:\\Winnt\\Profiles\\yagisita\\.keystore
-> your keystore (database file) locationvalue" attribute of KeyStorePassword element :
xml4j99 -> your-storepasswordvalue" attribute of KeyPassword element :
XMLForJava -> your-keypasswordtest.xmlInput the following command:
E:\xss4j> java com.ibm.xml.dsig.XDSSign data\test.xml data\securityContextForTest_xml output-filename
When you don't specify an output-filename, you can see the result on the standard output.
Input the following command:
E:\xss4j> java com.ibm.xml.dsig.XDSVerify output-filename securityContextText_xml test.policy
If the output-filename has not been modified, you see the following output:
Resource verified.
Signature verified.
If the output-filename has been modified, this verification fails.
Note: On Linux and Java 2 SDK pre-release 1,
XDSVerify doesn't work with JIT. Add the following option:
|