01: package org.objectweb.celtix.systest.securebasic;
02:
03: import javax.xml.ws.Endpoint;
04:
05: import org.objectweb.celtix.systest.common.TestServerBase;
06:
07: public class WantAndNeedClientAuthServerPKCS12 extends TestServerBase {
08:
09: private String url;
10:
11: public WantAndNeedClientAuthServerPKCS12(String urlParam) {
12: String configFile = getClass().getResource(".")
13: + "WantAndNeedClientAuthServerPKCS12.xml";
14: System.setProperty("celtix.config.file", configFile);
15: url = urlParam;
16: }
17:
18: protected void run() {
19: Object implementor = new GreeterImpl();
20: String address = url;
21: Endpoint.publish(address, implementor);
22: }
23:
24: public static void main(String[] args) {
25:
26: try {
27: WantAndNeedClientAuthServerPKCS12 requireClientAuth = new WantAndNeedClientAuthServerPKCS12(
28: "https://localhost:9007/SoapContext/SoapPort");
29: requireClientAuth.start();
30: } catch (Exception ex) {
31: ex.printStackTrace();
32: System.exit(-1);
33: } finally {
34: System.out.println("done!");
35: }
36: }
37: }
|