Author: jim.ma
Date: 2012-04-20 02:39:49 -0400 (Fri, 20 Apr 2012)
New Revision: 16192
Removed:
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/PolicyAlternativeTest.java
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/server/Server.java
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/DoubleItPolicy.wsdl
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/client/client.xml
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/server/server.xml
Log:
Fix the failed test as did in
http://svn.apache.org/viewvc?rev=1235708&view=rev
Deleted:
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/PolicyAlternativeTest.java
===================================================================
---
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/PolicyAlternativeTest.java 2012-04-20
06:04:28 UTC (rev 16191)
+++
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/PolicyAlternativeTest.java 2012-04-20
06:39:49 UTC (rev 16192)
@@ -1,131 +0,0 @@
-/**
- * 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.ws.policy;
-
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import org.apache.cxf.Bus;
-import org.apache.cxf.bus.spring.SpringBusFactory;
-import org.apache.cxf.systest.ws.policy.server.Server;
-import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
-
-import org.example.contract.doubleit.DoubleItPortType;
-
-import org.junit.BeforeClass;
-
-/**
- * This is a test for policy alternatives. The endpoint requires either a UsernameToken
(insecured) OR
- * a message signature using the Asymmetric binding.
- */
-public class PolicyAlternativeTest extends AbstractBusClientServerTestBase {
- static final String PORT = allocatePort(Server.class);
- static final String PORT2 = allocatePort(Server.class, 2);
-
- private static final String NAMESPACE =
"http://www.example.org/contract/DoubleIt";
- private static final QName SERVICE_QNAME = new QName(NAMESPACE,
"DoubleItService");
-
- @BeforeClass
- public static void startServers() throws Exception {
- assertTrue(
- "Server failed to launch",
- // run the server in the same process
- // set this to false to fork
- launchServer(Server.class, true)
- );
- }
-
- /**
- * The client uses the Asymmetric policy - this should succeed.
- */
- @org.junit.Test
- public void testAsymmetric() throws Exception {
-
- SpringBusFactory bf = new SpringBusFactory();
- URL busFile =
PolicyAlternativeTest.class.getResource("client/client.xml");
-
- Bus bus = bf.createBus(busFile.toString());
- SpringBusFactory.setDefaultBus(bus);
- SpringBusFactory.setThreadDefaultBus(bus);
-
- URL wsdl =
PolicyAlternativeTest.class.getResource("DoubleItPolicy.wsdl");
- Service service = Service.create(wsdl, SERVICE_QNAME);
- QName portQName = new QName(NAMESPACE, "DoubleItAsymmetricPort");
- DoubleItPortType utPort =
- service.getPort(portQName, DoubleItPortType.class);
- updateAddressPort(utPort, PORT2);
-
- utPort.doubleIt(25);
- }
-
- /**
- * The client uses no security - this should fail.
- */
- @org.junit.Test
- public void testNoSecurity() throws Exception {
-
- SpringBusFactory bf = new SpringBusFactory();
- URL busFile =
PolicyAlternativeTest.class.getResource("client/client.xml");
-
- Bus bus = bf.createBus(busFile.toString());
- SpringBusFactory.setDefaultBus(bus);
- SpringBusFactory.setThreadDefaultBus(bus);
-
- URL wsdl =
PolicyAlternativeTest.class.getResource("DoubleItPolicy.wsdl");
- Service service = Service.create(wsdl, SERVICE_QNAME);
- QName portQName = new QName(NAMESPACE, "DoubleItNoSecurityPort");
- DoubleItPortType utPort =
- service.getPort(portQName, DoubleItPortType.class);
- updateAddressPort(utPort, PORT2);
-
- try {
- utPort.doubleIt(25);
- fail("Failure expected on no Security");
- } catch (javax.xml.ws.soap.SOAPFaultException ex) {
- // expected
- }
- }
-
- /**
- * The client uses the UsernameToken policy - this should succeed.
- */
- @org.junit.Test
- public void testUsernameToken() throws Exception {
-
- SpringBusFactory bf = new SpringBusFactory();
- URL busFile =
PolicyAlternativeTest.class.getResource("client/client.xml");
-
- Bus bus = bf.createBus(busFile.toString());
- SpringBusFactory.setDefaultBus(bus);
- SpringBusFactory.setThreadDefaultBus(bus);
-
- URL wsdl =
PolicyAlternativeTest.class.getResource("DoubleItPolicy.wsdl");
- Service service = Service.create(wsdl, SERVICE_QNAME);
- QName portQName = new QName(NAMESPACE, "DoubleItUsernameTokenPort");
- DoubleItPortType utPort =
- service.getPort(portQName, DoubleItPortType.class);
- updateAddressPort(utPort, PORT2);
-
- utPort.doubleIt(25);
- }
-
-}
Deleted:
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/server/Server.java
===================================================================
---
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/server/Server.java 2012-04-20
06:04:28 UTC (rev 16191)
+++
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/policy/server/Server.java 2012-04-20
06:39:49 UTC (rev 16192)
@@ -1,47 +0,0 @@
-/**
- * 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.ws.policy.server;
-
-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 Server extends AbstractBusTestServerBase {
-
- public Server() {
-
- }
-
- protected void run() {
- URL busFile = Server.class.getResource("server.xml");
- Bus busLocal = new SpringBusFactory().createBus(busFile);
- BusFactory.setDefaultBus(busLocal);
- setBus(busLocal);
-
- try {
- new Server();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-}
Deleted:
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/DoubleItPolicy.wsdl
===================================================================
---
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/DoubleItPolicy.wsdl 2012-04-20
06:04:28 UTC (rev 16191)
+++
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/DoubleItPolicy.wsdl 2012-04-20
06:39:49 UTC (rev 16192)
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- 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.
--->
-<wsdl:definitions name="DoubleIt"
-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
-
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/contract/DoubleIt"
-
targetNamespace="http://www.example.org/contract/DoubleIt"
-
xmlns:wsp="http://www.w3.org/ns/ws-policy"
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
-
xmlns:wsaws="http://www.w3.org/2005/08/addressing"
-
xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702&...
-
xmlns:sp13="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/20080...
-
- <wsdl:import location="src/test/resources/DoubleItLogical.wsdl"
-
namespace="http://www.example.org/contract/DoubleIt"/>
-
- <wsdl:binding name="DoubleItInlinePolicyBinding"
type="tns:DoubleItPortType">
- <soap:binding style="document"
-
transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="DoubleIt">
- <soap:operation soapAction="" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- <wsdl:fault name="DoubleItFault">
- <soap:body use="literal" name="DoubleItFault"
/>
- </wsdl:fault>
- </wsdl:operation>
- </wsdl:binding>
-
- <wsdl:service name="DoubleItService">
- <wsdl:port name="DoubleItAsymmetricPort"
binding="tns:DoubleItInlinePolicyBinding">
- <soap:address
location="http://localhost:9010/DoubleItAsymmetric" />
- </wsdl:port>
- <wsdl:port name="DoubleItUsernameTokenPort"
binding="tns:DoubleItInlinePolicyBinding">
- <soap:address
location="http://localhost:9010/DoubleItUsernameToken" />
- </wsdl:port>
- <wsdl:port name="DoubleItNoSecurityPort"
binding="tns:DoubleItInlinePolicyBinding">
- <soap:address
location="http://localhost:9010/DoubleItNoSecurity" />
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
Deleted:
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/client/client.xml
===================================================================
---
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/client/client.xml 2012-04-20
06:04:28 UTC (rev 16191)
+++
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/client/client.xml 2012-04-20
06:39:49 UTC (rev 16192)
@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- 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:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xmlns:http="http://cxf.apache.org/transports/http/configuration"
-
xmlns:jaxws="http://cxf.apache.org/jaxws"
-
xmlns:cxf="http://cxf.apache.org/core"
-
xmlns:p="http://cxf.apache.org/policy"
-
xmlns:sec="http://cxf.apache.org/configuration/security"
- xsi:schemaLocation="
-
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.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/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
-
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
-
http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd
-
http://www.w3.org/ns/ws-policy http://www.w3.org/2007/02/ws-policy.xsd"
->
- <cxf:bus>
- <cxf:features>
- <p:policies/>
- <cxf:logging/>
- </cxf:features>
- </cxf:bus>
-
- <jaxws:client
-
name="{http://www.example.org/contract/DoubleIt}DoubleItAsymmetricPo...
- createdFromAPI="true">
- <jaxws:properties>
- <entry key="ws-security.username" value="Alice" />
- <entry key="ws-security.callback-handler"
- value="org.apache.cxf.systest.ws.wssec10.client.UTPasswordCallback" />
- <entry key="ws-security.encryption.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/bob.properties" />
- <entry key="ws-security.encryption.username" value="bob" />
- <entry key="ws-security.signature.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/alice.properties" />
- <entry key="ws-security.signature.username" value="alice"
/>
- </jaxws:properties>
- <jaxws:features>
- <p:policies>
- <wsp:PolicyReference
xmlns:wsp="http://www.w3.org/ns/ws-policy"
URI="#Asymmetric" />
- </p:policies>
- </jaxws:features>
- </jaxws:client>
-
- <jaxws:client
-
name="{http://www.example.org/contract/DoubleIt}DoubleItNoSecurityPo...
- createdFromAPI="true">
- <jaxws:properties>
- <entry key="ws-security.username" value="Alice" />
- <entry key="ws-security.callback-handler"
-
value="org.apache.cxf.systest.ws.wssec10.client.UTPasswordCallback" />
- <entry key="ws-security.encryption.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/bob.properties"
/>
- <entry key="ws-security.encryption.username"
value="bob" />
- <entry key="ws-security.signature.properties"
-
value="org/apache/cxf/systest/ws/wssec10/client/alice.properties" />
- <entry key="ws-security.signature.username"
value="alice" />
- </jaxws:properties>
- </jaxws:client>
-
- <jaxws:client
-
name="{http://www.example.org/contract/DoubleIt}DoubleItUsernameToke...
- createdFromAPI="true">
- <jaxws:properties>
- <entry key="ws-security.username" value="Alice" />
- <entry key="ws-security.callback-handler"
-
value="org.apache.cxf.systest.ws.wssec10.client.UTPasswordCallback" />
- <entry key="ws-security.encryption.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/bob.properties"
/>
- <entry key="ws-security.encryption.username"
value="bob" />
- <entry key="ws-security.signature.properties"
-
value="org/apache/cxf/systest/ws/wssec10/client/alice.properties" />
- <entry key="ws-security.signature.username"
value="alice" />
- </jaxws:properties>
- <jaxws:features>
- <p:policies>
- <wsp:PolicyReference
xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#UsernameToken" />
- </p:policies>
- </jaxws:features>
- </jaxws:client>
-
-
- <wsp:Policy wsu:Id="UsernameToken"
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
-
xmlns:wsp="http://www.w3.org/ns/ws-policy"
xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702&...
- <wsp:ExactlyOne>
- <wsp:All>
- <sp:SupportingTokens>
- <wsp:Policy>
- <sp:UsernameToken
-
sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/...
/>
- </wsp:Policy>
- </sp:SupportingTokens>
- </wsp:All>
- </wsp:ExactlyOne>
- </wsp:Policy>
-
- <wsp:Policy wsu:Id="Asymmetric"
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
-
xmlns:wsp="http://www.w3.org/ns/ws-policy">
- <wsp:ExactlyOne>
- <wsp:All>
- <sp:AsymmetricBinding
-
xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702&...
- <wsp:Policy>
- <sp:InitiatorToken>
- <wsp:Policy>
- <sp:X509Token
-
sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/...
- <wsp:Policy>
- <sp:WssX509V3Token10 />
- <sp:RequireIssuerSerialReference />
- </wsp:Policy>
- </sp:X509Token>
- </wsp:Policy>
- </sp:InitiatorToken>
- <sp:RecipientToken>
- <wsp:Policy>
- <sp:X509Token
-
sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/...
- <wsp:Policy>
- <sp:WssX509V3Token10 />
- <sp:RequireIssuerSerialReference />
- </wsp:Policy>
- </sp:X509Token>
- </wsp:Policy>
- </sp:RecipientToken>
- <sp:Layout>
- <wsp:Policy>
- <sp:Lax />
- </wsp:Policy>
- </sp:Layout>
- <sp:IncludeTimestamp />
- <sp:OnlySignEntireHeadersAndBody />
- <sp:AlgorithmSuite>
- <wsp:Policy>
- <sp:Basic128 />
- </wsp:Policy>
- </sp:AlgorithmSuite>
- </wsp:Policy>
- </sp:AsymmetricBinding>
- </wsp:All>
- </wsp:ExactlyOne>
- </wsp:Policy>
-
-</beans>
Deleted:
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/server/server.xml
===================================================================
---
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/server/server.xml 2012-04-20
06:04:28 UTC (rev 16191)
+++
thirdparty/cxf/branches/cxf-2.4.6/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/policy/server/server.xml 2012-04-20
06:39:49 UTC (rev 16192)
@@ -1,192 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- 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:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xmlns:jaxws="http://cxf.apache.org/jaxws"
-
xmlns:http="http://cxf.apache.org/transports/http/configuration"
-
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configurati...
-
xmlns:sec="http://cxf.apache.org/configuration/security"
-
xmlns:cxf="http://cxf.apache.org/core"
-
xmlns:p="http://cxf.apache.org/policy"
- xsi:schemaLocation="
-
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
-
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
-
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
-
http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.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://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
-
http://www.w3.org/ns/ws-policy
http://www.w3.org/2007/02/ws-policy.xsd
- ">
- <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
-
- <cxf:bus>
- <cxf:features>
- <p:policies/>
- <cxf:logging/>
- </cxf:features>
- </cxf:bus>
-
- <jaxws:endpoint id="AsymmetricEndpoint"
- address="http://localhost:${testutil.ports.Server.2}/DoubleItAsymmetric"
- serviceName="s:DoubleItService"
endpointName="s:DoubleItAsymmetricPort"
-
xmlns:s="http://www.example.org/contract/DoubleIt"
implementor="org.apache.cxf.systest.ws.common.DoubleItPortTypeImpl"
- wsdlLocation="org/apache/cxf/systest/ws/policy/DoubleItPolicy.wsdl">
-
- <jaxws:properties>
- <entry key="ws-security.callback-handler"
- value="org.apache.cxf.systest.ws.wssec10.client.UTPasswordCallback" />
- <entry key="ws-security.signature.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/bob.properties" />
- <entry key="ws-security.encryption.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/alice.properties" />
- <entry key="ws-security.encryption.username" value="alice"
/>
- </jaxws:properties>
- <jaxws:features>
- <p:policies>
- <wsp:PolicyReference
xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#Combined" />
- </p:policies>
- </jaxws:features>
-
- </jaxws:endpoint>
-
- <jaxws:endpoint id="NoSecurityEndpoint"
-
address="http://localhost:${testutil.ports.Server.2}/DoubleItNoSecurity"
- serviceName="s:DoubleItService"
endpointName="s:DoubleItNoSecurityPort"
-
xmlns:s="http://www.example.org/contract/DoubleIt"
implementor="org.apache.cxf.systest.ws.common.DoubleItPortTypeImpl"
-
wsdlLocation="org/apache/cxf/systest/ws/policy/DoubleItPolicy.wsdl">
-
- <jaxws:properties>
- <entry key="ws-security.callback-handler"
-
value="org.apache.cxf.systest.ws.wssec10.client.UTPasswordCallback" />
- <entry key="ws-security.signature.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/bob.properties"
/>
- <entry key="ws-security.encryption.properties"
-
value="org/apache/cxf/systest/ws/wssec10/client/alice.properties" />
- <entry key="ws-security.encryption.username"
value="alice" />
- </jaxws:properties>
- <jaxws:features>
- <p:policies>
- <wsp:PolicyReference
xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#Combined" />
- </p:policies>
- </jaxws:features>
-
- </jaxws:endpoint>
-
- <jaxws:endpoint id="UsernameTokenEndpoint"
-
address="http://localhost:${testutil.ports.Server.2}/DoubleItUsernameToken"
- serviceName="s:DoubleItService"
endpointName="s:DoubleItUsernameTokenPort"
-
xmlns:s="http://www.example.org/contract/DoubleIt"
implementor="org.apache.cxf.systest.ws.common.DoubleItPortTypeImpl"
-
wsdlLocation="org/apache/cxf/systest/ws/policy/DoubleItPolicy.wsdl">
-
- <jaxws:properties>
- <entry key="ws-security.callback-handler"
-
value="org.apache.cxf.systest.ws.wssec10.client.UTPasswordCallback" />
- <entry key="ws-security.signature.properties"
- value="org/apache/cxf/systest/ws/wssec10/client/bob.properties"
/>
- <entry key="ws-security.encryption.properties"
-
value="org/apache/cxf/systest/ws/wssec10/client/alice.properties" />
- <entry key="ws-security.encryption.username"
value="alice" />
- </jaxws:properties>
- <jaxws:features>
- <p:policies>
- <wsp:PolicyReference
xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#Combined" />
- </p:policies>
- </jaxws:features>
-
- </jaxws:endpoint>
-
-
- <wsp:Policy wsu:Id="Combined"
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
-
xmlns:wsp="http://www.w3.org/ns/ws-policy">
- <wsp:ExactlyOne>
- <wsp:All>
- <wsp:Policy wsu:Id="UsernameToken"
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
-
xmlns:wsp="http://www.w3.org/ns/ws-policy"
-
xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702&...
- <wsp:ExactlyOne>
- <wsp:All>
- <sp:SupportingTokens>
- <wsp:Policy>
- <sp:UsernameToken
-
sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/...
/>
- </wsp:Policy>
- </sp:SupportingTokens>
- </wsp:All>
- </wsp:ExactlyOne>
- </wsp:Policy>
- </wsp:All>
- <wsp:All>
- <wsp:Policy wsu:Id="Asymmetric"
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
-
xmlns:wsp="http://www.w3.org/ns/ws-policy">
- <wsp:ExactlyOne>
- <wsp:All>
- <sp:AsymmetricBinding
-
xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702&...
- <wsp:Policy>
- <sp:InitiatorToken>
- <wsp:Policy>
- <sp:X509Token
-
sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/...
- <wsp:Policy>
- <sp:WssX509V3Token10 />
- <sp:RequireIssuerSerialReference />
- </wsp:Policy>
- </sp:X509Token>
- </wsp:Policy>
- </sp:InitiatorToken>
- <sp:RecipientToken>
- <wsp:Policy>
- <sp:X509Token
-
sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/...
- <wsp:Policy>
- <sp:WssX509V3Token10 />
- <sp:RequireIssuerSerialReference />
- </wsp:Policy>
- </sp:X509Token>
- </wsp:Policy>
- </sp:RecipientToken>
- <sp:Layout>
- <wsp:Policy>
- <sp:Lax />
- </wsp:Policy>
- </sp:Layout>
- <sp:IncludeTimestamp />
- <sp:OnlySignEntireHeadersAndBody />
- <sp:AlgorithmSuite>
- <wsp:Policy>
- <sp:Basic128 />
- </wsp:Policy>
- </sp:AlgorithmSuite>
- </wsp:Policy>
- </sp:AsymmetricBinding>
- </wsp:All>
- </wsp:ExactlyOne>
- </wsp:Policy>
- </wsp:All>
- </wsp:ExactlyOne>
- </wsp:Policy>
-
-
-
-</beans>