You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2013/07/24 12:51:26 UTC

svn commit: r1506490 - in /cxf/trunk: rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/ rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/ services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/trans...

Author: coheigea
Date: Wed Jul 24 10:51:25 2013
New Revision: 1506490

URL: http://svn.apache.org/r1506490
Log:
Adding new streaming STS TransportBinding test

Added:
    cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxServer.java
    cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxTransportBindingTest.java
      - copied, changed from r1506066, cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java
    cxf/trunk/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml
Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/HttpsTokenInterceptorProvider.java
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyStaxActionInInterceptor.java
    cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/HttpsTokenInterceptorProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/HttpsTokenInterceptorProvider.java?rev=1506490&r1=1506489&r2=1506490&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/HttpsTokenInterceptorProvider.java (original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/HttpsTokenInterceptorProvider.java Wed Jul 24 10:51:25 2013
@@ -66,7 +66,8 @@ public class HttpsTokenInterceptorProvid
     private static final long serialVersionUID = -13951002554477036L;
 
     public HttpsTokenInterceptorProvider() {
-        super(Arrays.asList(SP11Constants.HTTPS_TOKEN, SP12Constants.HTTPS_TOKEN));
+        super(Arrays.asList(SP11Constants.TRANSPORT_TOKEN, SP12Constants.TRANSPORT_TOKEN, 
+                            SP11Constants.HTTPS_TOKEN, SP12Constants.HTTPS_TOKEN));
         this.getOutInterceptors().add(new HttpsTokenOutInterceptor());
         this.getOutFaultInterceptors().add(new HttpsTokenOutInterceptor());
         this.getInInterceptors().add(new HttpsTokenInInterceptor());
@@ -178,10 +179,19 @@ public class HttpsTokenInterceptorProvid
             if (aim != null) {
                 Collection<AssertionInfo> ais = 
                     NegotiationUtils.getAllAssertionsByLocalname(aim, SPConstants.HTTPS_TOKEN);
+                boolean requestor = isRequestor(message);
                 if (ais.isEmpty()) {
+                    if (!requestor 
+                        && !NegotiationUtils.getAllAssertionsByLocalname(aim, SPConstants.TRANSPORT_TOKEN).isEmpty()) {
+                        try {
+                            assertNonHttpsTransportToken(message);
+                        } catch (XMLSecurityException e) {
+                            LOG.fine(e.getMessage());
+                        }
+                    }
                     return;
                 }
-                if (!isRequestor(message)) {
+                if (!requestor) {
                     try {
                         assertHttps(aim, ais, message);
                     } catch (XMLSecurityException e) {
@@ -303,6 +313,32 @@ public class HttpsTokenInterceptorProvid
             }
         }
         
+        // We might have an IssuedToken TransportToken
+        private void assertNonHttpsTransportToken(Message message) throws XMLSecurityException {
+            TLSSessionInfo tlsInfo = message.get(TLSSessionInfo.class);                
+            if (tlsInfo != null) {
+                HttpsTokenSecurityEvent httpsTokenSecurityEvent = new HttpsTokenSecurityEvent();
+                if (tlsInfo.getPeerCertificates() != null && tlsInfo.getPeerCertificates().length > 0) {
+                    httpsTokenSecurityEvent.setAuthenticationType(
+                        HttpsTokenSecurityEvent.AuthenticationType.HttpsClientCertificateAuthentication
+                    );
+                    HttpsSecurityTokenImpl httpsSecurityToken = 
+                        new HttpsSecurityTokenImpl((X509Certificate)tlsInfo.getPeerCertificates()[0]);
+                    httpsSecurityToken.addTokenUsage(WSSecurityTokenConstants.TokenUsage_MainSignature);
+                    httpsTokenSecurityEvent.setSecurityToken(httpsSecurityToken);
+                } else if (httpsTokenSecurityEvent.getAuthenticationType() == null) {
+                    httpsTokenSecurityEvent.setAuthenticationType(
+                        HttpsTokenSecurityEvent.AuthenticationType.HttpsNoAuthentication
+                    );
+                    HttpsSecurityTokenImpl httpsSecurityToken = new HttpsSecurityTokenImpl();
+                    httpsSecurityToken.addTokenUsage(WSSecurityTokenConstants.TokenUsage_MainSignature);
+                    httpsTokenSecurityEvent.setSecurityToken(httpsSecurityToken);
+                }
+                List<SecurityEvent> securityEvents = getSecurityEventList(message);
+                securityEvents.add(httpsTokenSecurityEvent);
+            }
+        }
+
         private List<SecurityEvent> getSecurityEventList(Message message) {
             @SuppressWarnings("unchecked")
             List<SecurityEvent> securityEvents = 

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyStaxActionInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyStaxActionInInterceptor.java?rev=1506490&r1=1506489&r2=1506490&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyStaxActionInInterceptor.java (original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/PolicyStaxActionInInterceptor.java Wed Jul 24 10:51:25 2013
@@ -152,6 +152,7 @@ public class PolicyStaxActionInIntercept
         assertAllAssertionsByLocalname(aim, SPConstants.RECIPIENT_ENCRYPTION_TOKEN);
         assertAllAssertionsByLocalname(aim, SPConstants.RECIPIENT_SIGNATURE_TOKEN);
         assertAllAssertionsByLocalname(aim, SPConstants.RECIPIENT_TOKEN);
+        assertAllAssertionsByLocalname(aim, SPConstants.ISSUED_TOKEN);
         
         assertAllAssertionsByLocalname(aim, SPConstants.ONLY_SIGN_ENTIRE_HEADERS_AND_BODY);
         assertAllAssertionsByLocalname(aim, SPConstants.PROTECT_TOKENS);

Added: cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxServer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxServer.java?rev=1506490&view=auto
==============================================================================
--- cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxServer.java (added)
+++ cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxServer.java Wed Jul 24 10:51:25 2013
@@ -0,0 +1,46 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.systest.sts.transport;
+
+import java.net.URL;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.bus.spring.SpringBusFactory;
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+
+public class StaxServer extends AbstractBusTestServerBase {
+
+    public StaxServer() {
+
+    }
+
+    protected void run()  {
+        URL busFile = StaxServer.class.getResource("cxf-stax-service.xml");
+        Bus busLocal = new SpringBusFactory().createBus(busFile);
+        BusFactory.setDefaultBus(busLocal);
+        setBus(busLocal);
+
+        try {
+            new StaxServer();
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+    }
+}

Copied: cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxTransportBindingTest.java (from r1506066, cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java)
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxTransportBindingTest.java?p2=cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxTransportBindingTest.java&p1=cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java&r1=1506066&r2=1506490&rev=1506490&view=diff
==============================================================================
--- cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java (original)
+++ cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/StaxTransportBindingTest.java Wed Jul 24 10:51:25 2013
@@ -37,8 +37,10 @@ import org.junit.BeforeClass;
 /**
  * Test the TransportBinding. The CXF client gets a token from the STS over TLS, and then
  * sends it to the CXF endpoint over TLS.
+ * 
+ * It tests both DOM + StAX clients against the DOM server
  */
-public class TransportBindingTest extends AbstractBusClientServerTestBase {
+public class StaxTransportBindingTest extends AbstractBusClientServerTestBase {
     
     static final String STSPORT = allocatePort(STSServer.class);
     static final String STSPORT2 = allocatePort(STSServer.class, 2);
@@ -46,7 +48,7 @@ public class TransportBindingTest extend
     private static final String NAMESPACE = "http://www.example.org/contract/DoubleIt";
     private static final QName SERVICE_QNAME = new QName(NAMESPACE, "DoubleItService");
 
-    private static final String PORT = allocatePort(Server.class);
+    private static final String PORT = allocatePort(StaxServer.class);
     
     private static boolean standalone;
     
@@ -56,7 +58,7 @@ public class TransportBindingTest extend
                    "Server failed to launch",
                    // run the server in the same process
                    // set this to false to fork
-                   launchServer(Server.class, true)
+                   launchServer(StaxServer.class, true)
         );
         String deployment = System.getProperty("sts.deployment");
         if ("standalone".equals(deployment) || deployment == null) {
@@ -80,13 +82,13 @@ public class TransportBindingTest extend
     public void testSAML1() throws Exception {
 
         SpringBusFactory bf = new SpringBusFactory();
-        URL busFile = TransportBindingTest.class.getResource("cxf-client.xml");
+        URL busFile = StaxTransportBindingTest.class.getResource("cxf-client.xml");
 
         Bus bus = bf.createBus(busFile.toString());
         SpringBusFactory.setDefaultBus(bus);
         SpringBusFactory.setThreadDefaultBus(bus);
 
-        URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl");
+        URL wsdl = StaxTransportBindingTest.class.getResource("DoubleIt.wsdl");
         Service service = Service.create(wsdl, SERVICE_QNAME);
         QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML1Port");
         DoubleItPortType transportSaml1Port = 
@@ -116,13 +118,13 @@ public class TransportBindingTest extend
     public void testSAML2() throws Exception {
 
         SpringBusFactory bf = new SpringBusFactory();
-        URL busFile = TransportBindingTest.class.getResource("cxf-client.xml");
+        URL busFile = StaxTransportBindingTest.class.getResource("cxf-client.xml");
 
         Bus bus = bf.createBus(busFile.toString());
         SpringBusFactory.setDefaultBus(bus);
         SpringBusFactory.setThreadDefaultBus(bus);
 
-        URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl");
+        URL wsdl = StaxTransportBindingTest.class.getResource("DoubleIt.wsdl");
         Service service = Service.create(wsdl, SERVICE_QNAME);
         QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML2Port");
         DoubleItPortType transportSaml2Port = 
@@ -159,13 +161,13 @@ public class TransportBindingTest extend
     public void testUnknownClient() throws Exception {
 
         SpringBusFactory bf = new SpringBusFactory();
-        URL busFile = TransportBindingTest.class.getResource("cxf-bad-client.xml");
+        URL busFile = StaxTransportBindingTest.class.getResource("cxf-bad-client.xml");
 
         Bus bus = bf.createBus(busFile.toString());
         SpringBusFactory.setDefaultBus(bus);
         SpringBusFactory.setThreadDefaultBus(bus);
 
-        URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl");
+        URL wsdl = StaxTransportBindingTest.class.getResource("DoubleIt.wsdl");
         Service service = Service.create(wsdl, SERVICE_QNAME);
         QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML1Port");
         DoubleItPortType transportSaml1Port = 
@@ -206,13 +208,13 @@ public class TransportBindingTest extend
     public void testSAML1Endorsing() throws Exception {
 
         SpringBusFactory bf = new SpringBusFactory();
-        URL busFile = TransportBindingTest.class.getResource("cxf-client.xml");
+        URL busFile = StaxTransportBindingTest.class.getResource("cxf-client.xml");
 
         Bus bus = bf.createBus(busFile.toString());
         SpringBusFactory.setDefaultBus(bus);
         SpringBusFactory.setThreadDefaultBus(bus);
 
-        URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl");
+        URL wsdl = StaxTransportBindingTest.class.getResource("DoubleIt.wsdl");
         Service service = Service.create(wsdl, SERVICE_QNAME);
         QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML1EndorsingPort");
         DoubleItPortType transportSaml1Port = 
@@ -239,42 +241,6 @@ public class TransportBindingTest extend
         bus.shutdown(true);
     }
     
-    /**
-     * In this test-case, the client sends a request for a Security Token with no
-     * AppliesTo address (configured in Spring on the STSClient object). The STS fails as
-     * it will not issue a token to an unknown address.
-     */
-    @org.junit.Test
-    public void testUnknownAddress() throws Exception {
-
-        SpringBusFactory bf = new SpringBusFactory();
-        URL busFile = TransportBindingTest.class.getResource("cxf-bad-client.xml");
-
-        Bus bus = bf.createBus(busFile.toString());
-        SpringBusFactory.setDefaultBus(bus);
-        SpringBusFactory.setThreadDefaultBus(bus);
-
-        URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl");
-        Service service = Service.create(wsdl, SERVICE_QNAME);
-        QName portQName = new QName(NAMESPACE, "DoubleItTransportSAML1EndorsingPort");
-        DoubleItPortType transportSaml1Port = 
-            service.getPort(portQName, DoubleItPortType.class);
-        updateAddressPort(transportSaml1Port, PORT);
-        if (standalone) {
-            TokenTestUtils.updateSTSPort((BindingProvider)transportSaml1Port, STSPORT);
-        }
-        
-        try {
-            doubleIt(transportSaml1Port, 35);
-            //fail("Expected failure on an unknown address");
-        } catch (javax.xml.ws.soap.SOAPFaultException fault) {
-            // expected
-        }
-        
-        ((java.io.Closeable)transportSaml1Port).close();
-        bus.shutdown(true);
-    }
-    
     private static void doubleIt(DoubleItPortType port, int numToDouble) {
         int resp = port.doubleIt(numToDouble);
         assertEquals(numToDouble * 2 , resp);

Modified: cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java?rev=1506490&r1=1506489&r2=1506490&view=diff
==============================================================================
--- cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java (original)
+++ cxf/trunk/services/sts/systests/basic/src/test/java/org/apache/cxf/systest/sts/transport/TransportBindingTest.java Wed Jul 24 10:51:25 2013
@@ -37,6 +37,8 @@ import org.junit.BeforeClass;
 /**
  * Test the TransportBinding. The CXF client gets a token from the STS over TLS, and then
  * sends it to the CXF endpoint over TLS.
+ * 
+ * It tests both DOM + StAX clients against the DOM server
  */
 public class TransportBindingTest extends AbstractBusClientServerTestBase {
     

Added: cxf/trunk/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml?rev=1506490&view=auto
==============================================================================
--- cxf/trunk/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml (added)
+++ cxf/trunk/services/sts/systests/basic/src/test/resources/org/apache/cxf/systest/sts/transport/cxf-stax-service.xml Wed Jul 24 10:51:25 2013
@@ -0,0 +1,124 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+ 
+ http://www.apache.org/licenses/LICENSE-2.0
+ 
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+  xmlns:cxf="http://cxf.apache.org/core"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:sec="http://cxf.apache.org/configuration/security"
+  xmlns:http="http://cxf.apache.org/transports/http/configuration"
+  xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
+  xmlns:jaxws="http://cxf.apache.org/jaxws"
+  xsi:schemaLocation="
+            http://cxf.apache.org/core
+            http://cxf.apache.org/schemas/core.xsd
+            http://cxf.apache.org/configuration/security
+            http://cxf.apache.org/schemas/configuration/security.xsd
+            http://cxf.apache.org/jaxws
+            http://cxf.apache.org/schemas/jaxws.xsd
+            http://cxf.apache.org/transports/http/configuration
+            http://cxf.apache.org/schemas/configuration/http-conf.xsd
+            http://cxf.apache.org/transports/http-jetty/configuration
+            http://cxf.apache.org/schemas/configuration/http-jetty.xsd
+            http://www.springframework.org/schema/beans
+            http://www.springframework.org/schema/beans/spring-beans.xsd">
+   
+   <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
+   
+   <jaxws:endpoint id="doubleittransportsaml1"
+      implementor="org.apache.cxf.systest.sts.common.DoubleItPortTypeImpl"
+      endpointName="s:DoubleItTransportSAML1Port"
+      serviceName="s:DoubleItService"
+      depends-on="ClientAuthHttpsSettings"
+      address="https://localhost:${testutil.ports.StaxServer}/doubleit/services/doubleittransportsaml1"
+      wsdlLocation="org/apache/cxf/systest/sts/transport/DoubleIt.wsdl"
+      xmlns:s="http://www.example.org/contract/DoubleIt">
+        
+      <jaxws:properties>
+         <entry key="ws-security.callback-handler" 
+                value="org.apache.cxf.systest.sts.common.CommonCallbackHandler"/>
+         <entry key="ws-security.signature.properties" value="serviceKeystore.properties"/>
+         <entry key="ws-security.saml1.validator">
+            <bean class="org.apache.cxf.ws.security.trust.STSTokenValidator"/>
+         </entry>
+         <entry key="ws-security.is-bsp-compliant" value="false"/>
+         <entry key="ws-security.enable.streaming" value="true"/>
+      </jaxws:properties> 
+   </jaxws:endpoint>
+   
+   <jaxws:endpoint id="doubleittransportsaml2"
+      implementor="org.apache.cxf.systest.sts.common.DoubleItPortTypeImpl"
+      endpointName="s:DoubleItTransportSAML2Port"
+      serviceName="s:DoubleItService"
+      depends-on="ClientAuthHttpsSettings"
+      address="https://localhost:${testutil.ports.StaxServer}/doubleit/services/doubleittransportsaml2"
+      wsdlLocation="org/apache/cxf/systest/sts/transport/DoubleIt.wsdl"
+      xmlns:s="http://www.example.org/contract/DoubleIt">
+        
+      <jaxws:properties>
+         <entry key="ws-security.callback-handler" 
+                value="org.apache.cxf.systest.sts.common.CommonCallbackHandler"/>
+         <entry key="ws-security.signature.properties" value="serviceKeystore.properties"/>
+         <entry key="ws-security.saml2.validator">
+            <bean class="org.apache.cxf.ws.security.trust.STSTokenValidator"/>
+         </entry>
+         <entry key="ws-security.enable.streaming" value="true"/>
+      </jaxws:properties> 
+   </jaxws:endpoint>
+   
+   <jaxws:endpoint id="doubleittransportsaml1endorsing"
+      implementor="org.apache.cxf.systest.sts.common.DoubleItPortTypeImpl"
+      endpointName="s:DoubleItTransportSAML1EndorsingPort"
+      serviceName="s:DoubleItService"
+      depends-on="ClientAuthHttpsSettings"
+      address="https://localhost:${testutil.ports.StaxServer}/doubleit/services/doubleittransportsaml1endorsing"
+      wsdlLocation="org/apache/cxf/systest/sts/transport/DoubleIt.wsdl"
+      xmlns:s="http://www.example.org/contract/DoubleIt">
+        
+      <jaxws:properties>
+         <entry key="ws-security.callback-handler" 
+                value="org.apache.cxf.systest.sts.common.CommonCallbackHandler"/>
+         <entry key="ws-security.signature.properties" value="serviceKeystore.properties"/>
+         <entry key="ws-security.is-bsp-compliant" value="false"/>
+         <entry key="ws-security.enable.streaming" value="true"/>
+      </jaxws:properties> 
+   </jaxws:endpoint>
+   
+   <httpj:engine-factory id="ClientAuthHttpsSettings" bus="cxf">
+   <httpj:engine port="${testutil.ports.StaxServer}">
+    <httpj:tlsServerParameters>
+      <sec:keyManagers keyPassword="skpass">
+          <sec:keyStore type="jks" password="sspass" resource="servicestore.jks"/>
+      </sec:keyManagers>
+      <sec:trustManagers>
+          <sec:keyStore type="jks" password="stsspass" resource="stsstore.jks"/>
+      </sec:trustManagers>
+      <sec:cipherSuitesFilter>
+        <sec:include>.*_EXPORT_.*</sec:include>
+        <sec:include>.*_EXPORT1024_.*</sec:include>
+        <sec:include>.*_WITH_DES_.*</sec:include>
+        <sec:include>.*_WITH_AES_.*</sec:include>
+        <sec:include>.*_WITH_NULL_.*</sec:include>
+        <sec:exclude>.*_DH_anon_.*</sec:exclude>
+        </sec:cipherSuitesFilter>
+      <sec:clientAuthentication want="true" required="true"/>
+    </httpj:tlsServerParameters>
+   </httpj:engine>
+  </httpj:engine-factory>
+  
+</beans>
+