You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2008/12/05 20:08:39 UTC
svn commit: r723822 - in /cxf/sandbox/interopfest/wssec10: ./ src/ src/main/
src/main/java/ src/main/java/interop/ src/main/java/interop/client/
src/main/java/interop/server/ src/main/resources/ src/main/resources/etc/
src/style/
Author: dkulp
Date: Fri Dec 5 11:08:38 2008
New Revision: 723822
URL: http://svn.apache.org/viewvc?rev=723822&view=rev
Log:
Add wssec 1.0 stuff
Added:
cxf/sandbox/interopfest/wssec10/
cxf/sandbox/interopfest/wssec10/build.xml (with props)
cxf/sandbox/interopfest/wssec10/pom.xml (with props)
cxf/sandbox/interopfest/wssec10/src/
cxf/sandbox/interopfest/wssec10/src/main/
cxf/sandbox/interopfest/wssec10/src/main/java/
cxf/sandbox/interopfest/wssec10/src/main/java/interop/
cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/
cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java (with props)
cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java (with props)
cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/UTPasswordCallback.java (with props)
cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/
cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/MutualCertificate10SignEncryptRsa15TripleDes.java (with props)
cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/PingServiceBase.java (with props)
cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java (with props)
cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/UserNameOverTransport.java (with props)
cxf/sandbox/interopfest/wssec10/src/main/resources/
cxf/sandbox/interopfest/wssec10/src/main/resources/etc/
cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties (with props)
cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties (with props)
cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml (with props)
cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties (with props)
cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml (with props)
cxf/sandbox/interopfest/wssec10/src/style/
cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl (with props)
Added: cxf/sandbox/interopfest/wssec10/build.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/build.xml?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/build.xml (added)
+++ cxf/sandbox/interopfest/wssec10/build.xml Fri Dec 5 11:08:38 2008
@@ -0,0 +1,35 @@
+<project name="wssec11" default="download">
+ <property name="build.dir" location="target"/>
+ <target name="download.internal" if="needsToDownload">
+ <mkdir dir="${build.dir}/generated/src/main/resources/certs"/>
+ <mkdir dir="${build.dir}/wsdl"/>
+ <get src="http://131.107.72.15/ilab/Certs/Certs.zip" dest="${build.dir}/Certs.zip"/>
+ <get src="http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?wsdl" dest="${build.dir}/wsdl/WsSecurity10.wsdl"/>
+ <get src="http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?wsdl=wsdl0" dest="${build.dir}/wsdl/WsSecurity10_policy.wsdl"/>
+ <get src="http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd0" dest="${build.dir}/wsdl/WsSecurity10_0.xsd"/>
+ <get src="http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd1" dest="${build.dir}/wsdl/WsSecurity10_1.xsd"/>
+ <get src="http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd2" dest="${build.dir}/wsdl/WsSecurity10_2.xsd"/>
+ <get src="http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd3" dest="${build.dir}/wsdl/WsSecurity10_3.xsd"/>
+ <antcall target="transform"/>
+ <unzip src="${build.dir}/Certs.zip" dest="${build.dir}/generated/src/main/resources/certs"/>
+ </target>
+
+ <target name="transform">
+ <mkdir dir="${build.dir}/wsdl2"/>
+ <xslt basedir="${build.dir}/wsdl" destdir="${build.dir}/wsdl2"
+ style="src/style/makelocal.xsl" extension=".xml">
+ <mapper type="identity"/>
+ </xslt>
+ </target>
+
+
+ <target name="download">
+ <mkdir dir="${build.dir}"/>
+ <condition property="needsToDownload">
+ <not>
+ <available file="${build.dir}/Certs.zip"/>
+ </not>
+ </condition>
+ <antcall target="download.internal"/>
+ </target>
+</project>
Propchange: cxf/sandbox/interopfest/wssec10/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: cxf/sandbox/interopfest/wssec10/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/pom.xml?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/pom.xml (added)
+++ cxf/sandbox/interopfest/wssec10/pom.xml Fri Dec 5 11:08:38 2008
@@ -0,0 +1,179 @@
+<?xml version="1.0"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.cxf.interopfest</groupId>
+ <artifactId>ws-sec10</artifactId>
+ <version>1.0</version>
+ <properties>
+ <cxf.version>2.2-SNAPSHOT</cxf.version>
+ <test.method>MutualCertificate10SignEncryptRsa15TripleDes</test.method>
+ </properties>
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/java</directory>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>target/generated/src/main/resources</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ </resource>
+ </resources>
+
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <id>download-certs-wsdl</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <ant inheritRefs="true" antfile="${basedir}/build.xml">
+ <property value="${basedir}/target" name="build.dir" />
+ <target name="download" />
+ </ant>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-trax</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-codegen-plugin</artifactId>
+ <version>${cxf.version}</version>
+ <executions>
+ <execution>
+ <id>generate-sources</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <wsdlOptions>
+ <wsdlOption>
+ <wsdl>${basedir}/target/wsdl2/WsSecurity10.wsdl</wsdl>
+ </wsdlOption>
+ </wsdlOptions>
+ </configuration>
+ <goals>
+ <goal>wsdl2java</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <profiles>
+ <profile>
+ <id>server</id>
+ <build>
+ <defaultGoal>test</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+ <mainClass>demo.hw.server.Server</mainClass>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>client</id>
+ <build>
+ <defaultGoal>test</defaultGoal>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ <configuration>
+ <classpathScope>test</classpathScope>
+ <mainClass>interop.client.Client</mainClass>
+ <arguments>
+ <argument>${test.method}</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+
+
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-jaxws</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ <!-- Jetty is needed if you're using the CXFServlet -->
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http-jetty</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-ws-security</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-ws-policy</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ </dependencies>
+</project>
Propchange: cxf/sandbox/interopfest/wssec10/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/pom.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java Fri Dec 5 11:08:38 2008
@@ -0,0 +1,89 @@
+/**
+ * Copyright (c) 1993-2007 IONA Technologies PLC.
+ * All Rights Reserved.
+ */
+/**
+ * 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 interop.client;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+
+import org.apache.cxf.bus.spring.SpringBusFactory;
+
+import interopbaseaddress.interop.PingService10;
+import interopbaseaddress.interop.IPingService;
+
+public final class Client {
+
+ private static final String INPUT = "foo";
+
+ /**
+ * This class is not instantiated
+ */
+ private Client() {
+ }
+
+ /**
+ * The main entrypoint into the application
+ */
+ public static void main(String argv[])
+ throws Exception {
+ if (argv.length < 1) {
+ System.err.println(
+ "SYNTAX: java Client <port-prefix>"
+ );
+ //argv = new String[] {"UserNameOverTransport"};
+ argv = new String[] {"MutualCertificate10SignEncryptRsa15TripleDes"};
+ }
+
+ new SpringBusFactory().createBus("etc/client.xml");
+
+
+ final String portPrefix = argv[0];
+
+ final PingService10 svc = new PingService10();
+ final IPingService port =
+ svc.getPort(
+ new QName(
+ "http://InteropBaseAddress/interop",
+ portPrefix + "_IPingService"
+ ),
+ IPingService.class
+ );
+
+ /*
+ ((BindingProvider)port)
+ .getRequestContext()
+ .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+ "http://localhost:9000/MutualCertificate10SignEncryptRsa15TripleDes");
+ */
+
+ final String output = port.echo(INPUT);
+ if (!INPUT.equals(output)) {
+ System.err.println(
+ "Expected " + INPUT + " but got " + output
+ );
+ } else {
+ System.out.println("OK!");
+ }
+ }
+
+}
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/Client.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java Fri Dec 5 11:08:38 2008
@@ -0,0 +1,37 @@
+/**
+ * Copyright (c) 1993-2006 IONA Technologies PLC.
+ * All Rights Reserved.
+ */
+package interop.client;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+/**
+ */
+
+public class KeystorePasswordCallback implements CallbackHandler {
+
+ public KeystorePasswordCallback() {
+ }
+
+ /**
+ * It attempts to get the password from the private
+ * alias/passwords map.
+ */
+ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
+ for (int i = 0; i < callbacks.length; i++) {
+ WSPasswordCallback pc = (WSPasswordCallback)callbacks[i];
+ pc.setPassword("abcd!1234");
+ }
+ }
+
+
+}
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/KeystorePasswordCallback.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/UTPasswordCallback.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/UTPasswordCallback.java?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/UTPasswordCallback.java (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/UTPasswordCallback.java Fri Dec 5 11:08:38 2008
@@ -0,0 +1,58 @@
+/**
+ * Copyright (c) 1993-2007 IONA Technologies PLC.
+ * All Rights Reserved.
+ */
+
+package interop.client;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+/**
+ */
+
+public class UTPasswordCallback implements CallbackHandler {
+
+ private Map<String, String> passwords =
+ new HashMap<String, String>();
+
+ public UTPasswordCallback() {
+ passwords.put("Alice", "ecilA");
+ passwords.put("Frank", "invalid-password");
+ }
+
+ /**
+ * Here, we attempt to get the password from the private
+ * alias/passwords map.
+ */
+ public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
+ for (int i = 0; i < callbacks.length; i++) {
+ WSPasswordCallback pc = (WSPasswordCallback)callbacks[i];
+
+ String pass = passwords.get(pc.getIdentifer());
+ if (pass != null) {
+ pc.setPassword(pass);
+ return;
+ }
+ }
+
+ //
+ // Password not found
+ //
+ throw new IOException();
+ }
+
+ /**
+ * Add an alias/password pair to the callback mechanism.
+ */
+ public void setAliasPassword(String alias, String password) {
+ passwords.put(alias, password);
+ }
+}
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/UTPasswordCallback.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/client/UTPasswordCallback.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/MutualCertificate10SignEncryptRsa15TripleDes.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/MutualCertificate10SignEncryptRsa15TripleDes.java?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/MutualCertificate10SignEncryptRsa15TripleDes.java (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/MutualCertificate10SignEncryptRsa15TripleDes.java Fri Dec 5 11:08:38 2008
@@ -0,0 +1,15 @@
+/**
+ * Copyright (c) 1993-2007 IONA Technologies PLC.
+ * All Rights Reserved.
+ */
+package interop.server;
+
+@javax.jws.WebService(
+ targetNamespace = "http://InteropBaseAddress/interop",
+ serviceName = "PingService10",
+ portName = "MutualCertificate10SignEncryptRsa15TripleDes_IPingService",
+ endpointInterface = "interopbaseaddress.interop.IPingService"
+)
+public class MutualCertificate10SignEncryptRsa15TripleDes extends PingServiceBase {
+ // complete
+}
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/MutualCertificate10SignEncryptRsa15TripleDes.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/MutualCertificate10SignEncryptRsa15TripleDes.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/PingServiceBase.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/PingServiceBase.java?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/PingServiceBase.java (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/PingServiceBase.java Fri Dec 5 11:08:38 2008
@@ -0,0 +1,73 @@
+/**
+ * Copyright (c) 1993-2007 IONA Technologies PLC.
+ * All Rights Reserved.
+ */
+package interop.server;
+
+import javax.annotation.Resource;
+import javax.xml.ws.WebServiceContext;
+
+// import com.iona.cxf.security.credential.InCredentialsMap;
+import interopbaseaddress.interop.IPingService;
+
+public abstract class PingServiceBase implements IPingService {
+
+ @Resource
+ protected WebServiceContext ctx;
+
+ protected PingServiceBase() {
+ }
+
+ /*
+ protected static InCredentialsMap
+ getInCredentialsMap(
+ final WebServiceContext ctx
+ ) {
+ return (InCredentialsMap) ctx.getMessageContext().get(
+ InCredentialsMap.class.getName()
+ );
+ }
+ */
+
+ public interopbaseaddress.interop.EchoXmlResponse.EchoXmlResult
+ echoXml(
+ interopbaseaddress.interop.EchoXml.Request request
+ ) {
+ throw new RuntimeException("Unimplemented");
+ }
+
+ public java.lang.String
+ echo(
+ java.lang.String request
+ ) {
+ System.out.println("ping(" + request + ")");
+ return request;
+ }
+
+ public java.lang.String
+ fault(
+ java.lang.String request
+ ) {
+ throw new RuntimeException("Unimplemented");
+ }
+
+ public interopbaseaddress.interop.PingResponse
+ ping(
+ interopbaseaddress.interop.PingRequest parameters
+ ) {
+ throw new RuntimeException("Unimplemented");
+ }
+
+ public String header(
+ String parameters
+ ) {
+ throw new RuntimeException("Unimplemented");
+ }
+
+ public interopbaseaddress.interop.EchoDataSetResponse.EchoDataSetResult
+ echoDataSet(
+ interopbaseaddress.interop.EchoDataSet.Request request
+ ) {
+ throw new RuntimeException("Unimplemented");
+ }
+}
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/PingServiceBase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/PingServiceBase.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java Fri Dec 5 11:08:38 2008
@@ -0,0 +1,59 @@
+/**
+ * Copyright (c) 1993-2007 IONA Technologies PLC.
+ * All Rights Reserved.
+ */
+/**
+ * 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 interop.server;
+
+import javax.xml.ws.Endpoint;
+
+import org.apache.cxf.bus.spring.SpringBusFactory;
+
+public class Server {
+
+ protected Server() throws Exception {
+ new SpringBusFactory().createBus("server.xml");
+
+ //
+ // Scenario 3.1
+ //
+ Endpoint.publish(
+ "https://localhost:9001/UserNameOverTransport",
+ new UserNameOverTransport()
+ );
+ //
+ // Scenario 3.4
+ //
+ Endpoint.publish(
+ "http://localhost:9000/MutualCertificate10SignEncryptRsa15TripleDes",
+ new MutualCertificate10SignEncryptRsa15TripleDes()
+ );
+ }
+
+ public static void main(String args[]) throws Exception {
+ new Server();
+ System.out.println("Server ready...");
+
+ Thread.sleep(60 * 60 * 1000);
+ System.out.println("Server exiting");
+ System.exit(0);
+ }
+}
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java
------------------------------------------------------------------------------
svn:executable = *
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/Server.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/UserNameOverTransport.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/UserNameOverTransport.java?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/UserNameOverTransport.java (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/UserNameOverTransport.java Fri Dec 5 11:08:38 2008
@@ -0,0 +1,15 @@
+/**
+ * Copyright (c) 1993-2007 IONA Technologies PLC.
+ * All Rights Reserved.
+ */
+package interop.server;
+
+@javax.jws.WebService(
+ targetNamespace = "http://InteropBaseAddress/interop",
+ serviceName = "PingService10",
+ portName = "UserNameOverTransportLocal_IPingService",
+ endpointInterface = "interopbaseaddress.interop.IPingService"
+)
+public class UserNameOverTransport extends PingServiceBase {
+ // complete
+}
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/UserNameOverTransport.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/java/interop/server/UserNameOverTransport.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties Fri Dec 5 11:08:38 2008
@@ -0,0 +1,4 @@
+org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
+org.apache.ws.security.crypto.merlin.keystore.type=PKCS12
+org.apache.ws.security.crypto.merlin.keystore.password=password
+org.apache.ws.security.crypto.merlin.file=certs/alice.pfx
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/alice.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties Fri Dec 5 11:08:38 2008
@@ -0,0 +1,7 @@
+org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
+org.apache.ws.security.crypto.merlin.keystore.password=password
+
+# for some reason, bouncycastle has issues with bob.pfx
+org.apache.ws.security.crypto.merlin.keystore.provider=SunJSSE
+org.apache.ws.security.crypto.merlin.keystore.type=PKCS12
+org.apache.ws.security.crypto.merlin.file=certs/bob.pfx
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/bob.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml Fri Dec 5 11:08:38 2008
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- -->
+<!-- Copyright (c) 1993-2007 IONA Technologies PLC. -->
+<!-- All Rights Reserved. -->
+<!-- -->
+<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"
+>
+ <cxf:bus>
+ <cxf:features>
+ <p:policies/>
+ <cxf:logging/>
+ </cxf:features>
+ </cxf:bus>
+ <!-- -->
+ <!-- Scenario 3.1 -->
+ <!-- -->
+ <jaxws:client name="{http://InteropBaseAddress/interop}UserNameOverTransport_IPingService" createdFromAPI="true">
+ <jaxws:properties>
+ <entry key="ws-security.username" value="Alice"/>
+ <entry key="ws-security.callback-handler" value="interop.client.UTPasswordCallback"/>
+ </jaxws:properties>
+ </jaxws:client>
+ <!-- for call to local endpoint -->
+ <jaxws:client name="{http://InteropBaseAddress/interop}UserNameOverTransportLocal_IPingService" createdFromAPI="true">
+ <jaxws:properties>
+ <entry key="ws-security.username" value="Alice"/>
+ <entry key="ws-security.callback-handler" value="interop.client.UTPasswordCallback"/>
+ </jaxws:properties>
+ </jaxws:client>
+ <http:conduit name="https://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc/UserNameOverTransport.*">
+ <http:tlsClientParameters disableCNCheck="true">
+ <sec:keyManagers keyPassword="password">
+ <sec:keyStore type="pkcs12" password="password" resource="certs/alice.pfx"/>
+ </sec:keyManagers>
+ <sec:trustManagers>
+ <sec:keyStore type="pkcs12" password="password" resource="certs/bob.pfx"/>
+ </sec:trustManagers>
+ </http:tlsClientParameters>
+ </http:conduit>
+ <!-- for call to local endpoint -->
+ <http:conduit name="{http://InteropBaseAddress/interop}UserNameOverTransportLocal_IPingService.http-conduit">
+ <http:tlsClientParameters>
+ <sec:keyManagers keyPassword="password">
+ <sec:keyStore type="pkcs12" password="password" resource="certs/alice.pfx"/>
+ </sec:keyManagers>
+ <sec:trustManagers>
+ <sec:keyStore type="pkcs12" password="password" resource="certs/alice.pfx"/>
+ <!--sec:keyStore type="jks" resource="certs/certs.jks"/-->
+ </sec:trustManagers>
+ </http:tlsClientParameters>
+ </http:conduit>
+
+ <!-- -->
+ <!-- Scenario 3.4 -->
+ <!-- -->
+ <jaxws:client name="{http://InteropBaseAddress/interop}MutualCertificate10SignEncryptRsa15TripleDes_IPingService" createdFromAPI="true">
+ <jaxws:properties>
+ <entry key="ws-security.username" value="Alice"/>
+ <entry key="ws-security.callback-handler" value="interop.client.KeystorePasswordCallback"/>
+ <entry key="ws-security.signature.properties" value="etc/alice.properties"/>
+ <entry key="ws-security.encryption.properties" value="etc/bob.properties"/>
+ </jaxws:properties>
+ </jaxws:client>
+ <!-- for call to local endpoint -->
+ <jaxws:client name="{http://InteropBaseAddress/interop}MutualCertificate10SignEncryptRsa15TripleDesLocal_IPingService" createdFromAPI="true">
+ <jaxws:properties>
+ <entry key="ws-security.username" value="Alice"/>
+ <entry key="ws-security.callback-handler" value="interop.client.KeystorePasswordCallback"/>
+ <entry key="ws-security.signature.properties" value="etc/alice.properties"/>
+ <entry key="ws-security.encryption.properties" value="etc/bob.properties"/>
+ </jaxws:properties>
+ </jaxws:client>
+
+</beans>
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/client.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties Fri Dec 5 11:08:38 2008
@@ -0,0 +1,78 @@
+#
+# Copyright (c) 1993-2007 IONA Technologies PLC.
+# All Rights Reserved.
+#
+
+# 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.
+
+############################################################
+# Default Logging Configuration File
+#
+# You can use a different file by specifying a filename
+# with the java.util.logging.config.file system property.
+# For example java -Djava.util.logging.config.file=myfile
+############################################################
+
+############################################################
+# Global properties
+############################################################
+
+# "handlers" specifies a comma separated list of log Handler
+# classes. These handlers will be installed during VM startup.
+# Note that these classes must be on the system classpath.
+# By default we only configure a ConsoleHandler, which will only
+# show messages at the WARNING and above levels.
+handlers= java.util.logging.ConsoleHandler
+
+# To also add the FileHandler, use the following line instead.
+#handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
+
+# Default global logging level.
+# This specifies which kinds of events are logged across
+# all loggers. For any given facility this global level
+# can be overriden by a facility specific level
+# Note that the ConsoleHandler also has a separate level
+# setting to limit messages printed to the console.
+.level= FINEST
+
+############################################################
+# Handler specific properties.
+# Describes specific configuration info for Handlers.
+############################################################
+
+# default file output is in user's home directory.
+java.util.logging.FileHandler.pattern = %h/java%u.log
+java.util.logging.FileHandler.limit = 50000
+java.util.logging.FileHandler.count = 1
+java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
+
+# Limit the message that are printed on the console to INFO and above.
+# java.util.logging.ConsoleHandler.level = INFO
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+
+
+############################################################
+# Facility specific properties.
+# Provides extra control for each logger.
+############################################################
+
+# For example, set the com.xyz.foo logger to only log SEVERE
+# messages:
+# com.xyz.foo.level = SEVERE
+# com.iona.cxf.security.level=INFO
+org.apache.cxf.level=FINEST
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties
------------------------------------------------------------------------------
svn:executable = *
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/logging.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml (added)
+++ cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml Fri Dec 5 11:08:38 2008
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- -->
+<!-- Copyright (c) 1993-2007 IONA Technologies PLC. -->
+<!-- All Rights Reserved. -->
+<!-- -->
+<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/configuration"
+ xmlns:sec="http://cxf.apache.org/configuration/security"
+ xmlns:security="http://schemas.iona.com/soa/security-config"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.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://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
+ http://schemas.iona.com/soa/security-config http://schemas.iona.com/soa/security-config.xsd
+ ">
+
+ <!-- -->
+ <!-- Any services listening on port 9001 must use the following -->
+ <!-- Transport Layer Security (TLS) settings -->
+ <!-- -->
+ <httpj:engine-factory bus="cxf">
+ <httpj:engine port="9001">
+ <httpj:tlsServerParameters>
+ <sec:keyManagers keyPassword="password">
+ <sec:keyStore type="pkcs12" password="password" file="keys/alice.pfx"/>
+ </sec:keyManagers>
+ <sec:trustManagers>
+ <sec:keyStore type="jks" password="password" file="keys/certs.jks"/>
+ </sec:trustManagers>
+ <!--
+ <sec:cipherSuitesFilter>
+ <sec:include>.*_EXPORT_.*</sec:include>
+ <sec:include>.*_EXPORT1024_.*</sec:include>
+ <sec:include>.*_WITH_DES_.*</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>
+
+ <!-- -->
+ <!-- Scenario 3.4 -->
+ <!-- -->
+ <jaxws:endpoint name="{http://InteropBaseAddress/interop}MutualCertificate10SignEncryptRsa15TripleDes_IPingService" createdFromAPI="true">
+ <jaxws:features>
+ <bean class="org.apache.cxf.feature.LoggingFeature"/>
+ </jaxws:features>
+ <jaxws:outInterceptors>
+ <bean class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor"/>
+ <ref bean="MutualCertificate10SignEncryptRsa153Des_Response"/>
+ </jaxws:outInterceptors>
+ <jaxws:inInterceptors>
+ <ref bean="MutualCertificate10SignEncryptRsa153Des_Request"/>
+ <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
+ </jaxws:inInterceptors>
+ </jaxws:endpoint>
+ <bean
+ class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor"
+ id="MutualCertificate10SignEncryptRsa153Des_Response">
+ <constructor-arg>
+ <map>
+ <entry key="action" value="Timestamp Signature Encrypt"/>
+ <entry key="user" value="Bob"/>
+ <entry key="signaturePropFile" value="bob.properties"/>
+ <entry key="encryptionPropFile" value="alice.properties"/>
+ <entry key="encryptionUser" value="Alice"/>
+ <entry key="signatureKeyIdentifier" value="DirectReference"/>
+ <entry key="passwordCallbackClass" value="demo.hw.client.KeystorePasswordCallback"/>
+ <entry key="signatureParts" value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
+ <!-- -->
+ <!-- Recommendation: signatures should be encrypted -->
+ <!-- -->
+ <entry key="encryptionParts" value="{Element}{http://www.w3.org/2000/09/xmldsig#}Signature;{Content}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
+ <!-- <entry key="encryptionKeyTransportAlgorithm" value="RSA15"/> -->
+ <entry key="encryptionSymAlgorithm" value="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
+ </map>
+ </constructor-arg>
+ </bean>
+ <bean
+ class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor"
+ id="MutualCertificate10SignEncryptRsa153Des_Request">
+ <constructor-arg>
+ <map>
+ <!-- Use this action order for local clients -->
+ <entry key="action" value="Timestamp Signature Encrypt"/>
+ <!-- Use this action spec for WCF clients
+ <entry key="action" value="Signature Encrypt Timestamp"/>
+ -->
+ <entry key="signaturePropFile" value="alice.properties"/>
+ <entry key="decryptionPropFile" value="bob.properties"/>
+ <entry key="passwordCallbackClass" value="demo.hw.client.KeystorePasswordCallback"/>
+ </map>
+ </constructor-arg>
+ </bean>
+
+</beans>
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml
------------------------------------------------------------------------------
svn:executable = *
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/src/main/resources/etc/server.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl
URL: http://svn.apache.org/viewvc/cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl?rev=723822&view=auto
==============================================================================
--- cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl (added)
+++ cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl Fri Dec 5 11:08:38 2008
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ <xsl:output method="xml"/>
+
+ <xsl:template match="xs:import">
+ <xsl:copy>
+ <xsl:choose>
+ <xsl:when test="@schemaLocation='http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd0'">
+ <xsl:attribute name="schemaLocation">WsSecurity10_0.xsd</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="@schemaLocation='http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd1'">
+ <xsl:attribute name="schemaLocation">WsSecurity10_1.xsd</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="@schemaLocation='http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd2'">
+ <xsl:attribute name="schemaLocation">WsSecurity10_2.xsd</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="@schemaLocation='http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?xsd=xsd3'">
+ <xsl:attribute name="schemaLocation">WsSecurity10_3.xsd</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="schemaLocation"><xsl:value-of select="@schemaLocation"/></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates select="@namespace"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+ <xsl:template match="wsdl:import">
+ <xsl:copy>
+ <xsl:choose>
+ <xsl:when test="@location='http://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc?wsdl'">
+ <xsl:attribute name="location">WsSecurity10.wsdl</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="location">WsSecurity10_policy.wsdl</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates select="@namespace"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="soap:address">
+ <xsl:copy>
+ <xsl:choose>
+ <xsl:when test="@location='https://kirillgdev04/Security_WsSecurity_Service_Indigo/WsSecurity10.svc/UserNameOverTransport'">
+ <xsl:attribute name="location">https://131.107.72.15/Security_WsSecurity_Service_Indigo/WsSecurity10.svc/UserNameOverTransport</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="@*"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="xs:element[@ref='xs:schema']">
+ </xsl:template>
+ <xsl:template match="@*">
+ <xsl:copy/>
+ </xsl:template>
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Propchange: cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/sandbox/interopfest/wssec10/src/style/makelocal.xsl
------------------------------------------------------------------------------
svn:mime-type = text/xml