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