Debian Codegraph @

samples/security/readme

raw
1 The security sample demonstrates how to use the Axis architecture to
2 add digital signatures to your application.
3
4 To run the sample,
5
6 1. Set up your CLASSPATH.
7 2. Start an Axis server.
8 3. Install the server side handler.
9 4. Run the client application.
10
11
12 1. Set up your CLASSPATH.
13 The CLASSPATH must contain: an XML parser (ie., Xerces), JUnit
14 (www.junit.org), xmlsec.jar (xml.apache.org/security/index.html),
15 xalan.jar (comes with xmlsec.jar, or xml.apache.org/xalan-j), log4j.jar
16 (comes with xmlsec.jar, or jakarta.apache.org/log4j), xml-apis.jar (comes
17 with xmlsec.jar), jce-jdk13-113.jar (www.bouncycastle.org), all the jars
18 in the lib directory, and the directory containing the samples
19 subdirectory.
20
21 1.5. NOTE: If the build you have wasn't built with security turned on, you
22 will have to build this sample by hand. From the samples/security
23 directory, simply run:
24 javac *.java
25
26 2. Start an Axis server.
27 To run the sample, you will first need to run a server. To run a very
28 simple server you could run, in a separate window:
29 java org.apache.axis.transport.http.SimpleAxisServer -p 8080
30
31 3. Install the server side handler.
32 You need to install the server's digital signature handler. To do this:
33 java org.apache.axis.client.AdminClient securitydeploy.wsdd
34
35 4. Run the client application.
36 Finally, to run the client, run:
37 java samples.security.Client
38
39 This sample also allows you to setup an Axis server to allow transparent
40 digital signature of all SOAP messages being processed by the server. To
41 enable this, in addition to step 3 above, do the following:
42
43 3.3. Install the client side handler.
44 On the client side, ClientSigningHandler is installed in the global
45 request chain. You must run the following command two directories above
46 the security sample directory:
47 java org.apache.axis.utils.Admin client samples/security/clientsecuritydeploy.wsdd
48
49 3.5. Install the server side handler: On the server side, LogHandler is
50 installed in the global request chain. You must run the following
51 command two directories above the security sample directory:
52 java org.apache.axis.client.AdminClient samples/security/serversecuritydeploy.wsdd