You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ve...@apache.org on 2010/03/01 21:06:27 UTC
svn commit: r917689 [2/2] - in /cxf/sandbox/veithen/cxf-spring-security: ./
cxf-spring-security/ cxf-spring-security/src/ cxf-spring-security/src/main/
cxf-spring-security/src/main/java/ cxf-spring-security/src/main/java/org/
cxf-spring-security/src/ma...
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/pom.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/pom.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/pom.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,41 @@
+<?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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.google.code.cxf-spring-security</groupId>
+ <artifactId>samples</artifactId>
+ <version>2.3.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>jax-rs-sample</artifactId>
+ <name>CXF - Spring Security integration :: Samples :: JAX-RS</name>
+ <packaging>war</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-jaxrs</artifactId>
+ <version>${version}</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/soapui-project.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/soapui-project.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/soapui-project.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/soapui-project.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<con:soapui-project name="JAX-RS Sample" resourceRoot="${projectDir}" soapui-version="3.0.1" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:RestService" wadlVersion="http://wadl.dev.java.net/2009/02" name="Greeter" type="rest" basePath="/jax-rs-sample/rest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart=""/><con:endpoints><con:endpoint>http://localhost:8080</con:endpoint></con:endpoints><con:resource name="greeting" path="greeting"><con:settings/><con:parameters/><con:method name="GET" method="GET"><con:settings/><con:parameters/><con:representation type="FAULT"><con:mediaType>null</con:mediaType><con:status>401</con:status><con:params/><con:element>data</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>text/plain</con:mediaType><con:status>200</con:status><con:params/><con:element>data</con:element></con:representation><con:request nam
e="Bob" mediaType="application/xml"><con:settings/><con:endpoint>http://localhost:8080</con:endpoint><con:request/><con:credentials><con:username>bob</con:username><con:password>password</con:password></con:credentials><con:parameters/></con:request><con:request name="Joe" mediaType="application/xml"><con:settings/><con:endpoint>http://localhost:8080</con:endpoint><con:request/><con:credentials><con:username>joe</con:username><con:password>password</con:password></con:credentials><con:parameters/></con:request></con:method><con:method name="PUT" method="PUT"><con:settings/><con:parameters/><con:representation type="REQUEST"><con:mediaType>text/xml</con:mediaType><con:params/></con:representation><con:representation type="FAULT"><con:mediaType>text/xml</con:mediaType><con:status>401 405</con:status><con:params/></con:representation><con:representation type="REQUEST"><con:mediaType>text/plain</con:mediaType><con:params/><con:element>data</con:element></con:representation><con:
representation type="FAULT"><con:mediaType>text/plain</con:mediaType><con:status>401</con:status><con:params/><con:element>data</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>text/xml</con:mediaType><con:status>204</con:status><con:params/></con:representation><con:request name="Joe" mediaType="text/plain" postQueryString="false"><con:settings/><con:endpoint>http://localhost:8080</con:endpoint><con:request>Good morning!</con:request><con:credentials><con:username>joe</con:username><con:password>password</con:password></con:credentials><con:parameters/></con:request><con:request name="Bob" mediaType="text/plain" postQueryString="false"><con:settings/><con:endpoint>http://localhost:8080</con:endpoint><con:request>Good morning!</con:request><con:credentials><con:username>bob</con:username><con:password>password</con:password></con:credentials><con:parameters/></con:request></con:method></con:resource></con:interface><con:properties/><con:ws
sContainer/></con:soapui-project>
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/soapui-project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/java/sample/GreeterService.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/java/sample/GreeterService.java?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/java/sample/GreeterService.java (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/java/sample/GreeterService.java Mon Mar 1 20:06:25 2010
@@ -0,0 +1,30 @@
+package sample;
+
+import javax.ws.rs.Consumes;
+import javax.ws.rs.GET;
+import javax.ws.rs.PUT;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.SecurityContext;
+
+import org.springframework.security.annotation.Secured;
+
+@Path("/greeting")
+public class GreeterService {
+ private String greeting = "Hello %u!";
+
+ @GET
+ @Produces("text/plain")
+ @Secured("ROLE_USER")
+ public String getGreeting(@Context SecurityContext securityContext) {
+ return greeting.replaceAll("%u", securityContext.getUserPrincipal().getName());
+ }
+
+ @PUT
+ @Consumes("text/plain")
+ @Secured("ROLE_ADMIN")
+ public void setGreeting(String greeting) {
+ this.greeting = greeting;
+ }
+}
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/java/sample/GreeterService.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/resources/log4j.properties?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/resources/log4j.properties (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/resources/log4j.properties Mon Mar 1 20:06:25 2010
@@ -0,0 +1,9 @@
+# Set root logger level to DEBUG and its only appender to A1.
+log4j.rootLogger=DEBUG, A1
+
+# A1 is set to be a ConsoleAppender.
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%-5p %c %x - %m%n
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/applicationContext.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/applicationContext.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/applicationContext.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:security="http://www.springframework.org/schema/security"
+ xmlns:ssec="http://cxf.apache.org/spring-security"
+ xmlns:jaxrs="http://cxf.apache.org/jaxrs"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd
+ http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
+ http://cxf.apache.org/spring-security http://cxf-spring-security.googlecode.com/svn/trunk/cxf-spring-security/src/main/resources/schemas/spring-security.xsd"
+ default-autowire="byName">
+
+ <import resource="classpath:META-INF/cxf/cxf.xml"/>
+ <import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
+
+ <security:global-method-security secured-annotations="enabled"/>
+
+ <security:authentication-provider>
+ <security:user-service>
+ <security:user name="joe" password="password" authorities="ROLE_USER,ROLE_ADMIN"/>
+ <security:user name="bob" password="password" authorities="ROLE_USER"/>
+ </security:user-service>
+ </security:authentication-provider>
+
+ <jaxrs:server address="/rest">
+ <jaxrs:serviceBeans>
+ <bean class="sample.GreeterService"/>
+ </jaxrs:serviceBeans>
+ <jaxrs:providers>
+ <bean class="org.apache.cxf.security.spring.SpringSecurityExceptionMapper"/>
+ </jaxrs:providers>
+ <jaxrs:inInterceptors>
+ <ssec:basic-auth-interceptor/>
+ <ssec:cxf-security-context-provider-interceptor/>
+ </jaxrs:inInterceptors>
+ <jaxrs:features>
+ <ssec:spring-security-context-feature/>
+ </jaxrs:features>
+ </jaxrs:server>
+</beans>
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/web.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/web.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/web.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <listener>
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+ </listener>
+ <servlet>
+ <servlet-name>CXFServlet</servlet-name>
+ <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>CXFServlet</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-rs/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/pom.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/pom.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/pom.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,79 @@
+<?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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.google.code.cxf-spring-security</groupId>
+ <artifactId>samples</artifactId>
+ <version>2.3.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>jax-ws-jms-sample</artifactId>
+ <name>CXF - Spring Security integration :: Samples :: JAX-WS with SOAP/JMS</name>
+ <packaging>war</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-jaxws</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-jms</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.activemq</groupId>
+ <artifactId>activemq-core</artifactId>
+ <version>5.3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.xbean</groupId>
+ <artifactId>xbean-spring</artifactId>
+ <version>3.6</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jaxws-maven-plugin</artifactId>
+ <version>1.12</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>wsimport</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <wsdlDirectory>src/main/resources/META-INF/wsdl</wsdlDirectory>
+ <wsdlFiles>
+ <wsdlFile>calculator.wsdl</wsdlFile>
+ </wsdlFiles>
+ <wsdlLocation>META-INF/wsdl/calculator.wsdl</wsdlLocation>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/Test.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/Test.java?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/Test.java (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/Test.java Mon Mar 1 20:06:25 2010
@@ -0,0 +1,62 @@
+/**
+ * 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 test;
+
+import java.util.List;
+
+import javax.xml.ws.BindingProvider;
+
+import org.apache.cxf.jaxws.EndpointImpl;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.cxf.transport.jms.JMSConstants;
+import org.apache.cxf.transport.jms.JMSMessageHeadersType;
+import org.apache.cxf.transport.jms.JMSPropertyType;
+import org.apache.cxf.transport.jms.spec.JMSSpecConstants;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+import test.calculator.Calculator;
+
+public class Test {
+ public static void main(String[] args) throws Exception {
+ ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("applicationContext.xml");
+ try {
+ String address = ((EndpointImpl)appContext.getBean("endpoint")).getAddress();
+
+ JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
+ factory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID);
+ factory.setServiceClass(Calculator.class);
+ factory.setAddress(address);
+ Calculator client = (Calculator)factory.create();
+ JMSMessageHeadersType headers = new JMSMessageHeadersType();
+ List<JMSPropertyType> properties = headers.getProperty();
+ JMSPropertyType property = new JMSPropertyType();
+ property.setName("user");
+ property.setValue("joe");
+ properties.add(property);
+ property = new JMSPropertyType();
+ property.setName("password");
+ property.setValue("password");
+ properties.add(property);
+ ((BindingProvider)client).getRequestContext().put(JMSConstants.JMS_CLIENT_REQUEST_HEADERS, headers);
+ System.out.println("1 + 1 = " + client.add(1, 1));
+ } finally {
+ appContext.destroy();
+ }
+ }
+}
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/calculator/impl/CalculatorImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/calculator/impl/CalculatorImpl.java?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/calculator/impl/CalculatorImpl.java (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/calculator/impl/CalculatorImpl.java Mon Mar 1 20:06:25 2010
@@ -0,0 +1,27 @@
+/**
+ * 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 test.calculator.impl;
+
+import test.calculator.Calculator;
+
+public class CalculatorImpl implements Calculator {
+ public int add(int value1, int value2) {
+ return value1 + value2;
+ }
+}
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/java/test/calculator/impl/CalculatorImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/META-INF/wsdl/calculator.wsdl
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/META-INF/wsdl/calculator.wsdl?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/META-INF/wsdl/calculator.wsdl (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/META-INF/wsdl/calculator.wsdl Mon Mar 1 20:06:25 2010
@@ -0,0 +1,73 @@
+<?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 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ targetNamespace="urn:test:calculator"
+ xmlns:tns="urn:test:calculator"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <xsd:schema targetNamespace="urn:test:calculator">
+ <xsd:element name="add">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value1" type="xsd:int"/>
+ <xsd:element name="value2" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="addResponse">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="sum" type="xsd:int"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="addRequest">
+ <wsdl:part element="tns:add" name="body"/>
+ </wsdl:message>
+ <wsdl:message name="addResponse">
+ <wsdl:part element="tns:addResponse" name="body"/>
+ </wsdl:message>
+ <wsdl:portType name="Calculator">
+ <wsdl:operation name="add">
+ <wsdl:input message="tns:addRequest"/>
+ <wsdl:output message="tns:addResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CalculatorSOAP" type="tns:Calculator">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="add">
+ <soap:operation soapAction="urn:test:calculator:add"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="CalculatorService">
+ <wsdl:port binding="tns:CalculatorSOAP" name="CalculatorSOAP">
+ <soap:address location="REPLACE_WITH_ACTUAL_URI"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/applicationContext.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/applicationContext.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/applicationContext.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/applicationContext.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,51 @@
+<?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:security="http://www.springframework.org/schema/security"
+ xmlns:ssec="http://cxf.apache.org/spring-security"
+ xmlns:jaxws="http://cxf.apache.org/jaxws"
+ xmlns:amq="http://activemq.apache.org/schema/core"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd
+ http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
+ http://cxf.apache.org/spring-security http://cxf-spring-security.googlecode.com/svn/trunk/cxf-spring-security/src/main/resources/schemas/spring-security.xsd
+ http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"
+ default-autowire="byName">
+
+ <amq:broker persistent="false"/>
+
+ <security:authentication-provider>
+ <security:user-service>
+ <security:user name="joe" password="password" authorities="ROLE_USER,ROLE_ADMIN"/>
+ <security:user name="bob" password="password" authorities="ROLE_USER"/>
+ </security:user-service>
+ </security:authentication-provider>
+
+ <jaxws:endpoint id="endpoint"
+ implementor="test.calculator.impl.CalculatorImpl"
+ address="jms:jndi:dynamicQueues/calculator?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&jndiConnectionFactoryName=ConnectionFactory&jndiURL=vm://broker1%3Fmarshal=false%26broker.persistent=false"
+ transportId="http://www.w3.org/2008/07/soap/bindings/JMS/">
+ <jaxws:inInterceptors>
+ <ssec:generic-username-password-interceptor usernameHeader="user" passwordHeader="password"/>
+ <ssec:soap-authentication-interceptor/>
+ </jaxws:inInterceptors>
+ </jaxws:endpoint>
+</beans>
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/jax-ws-jms-sample/src/main/resources/applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/pom.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/pom.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/pom.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,127 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.google.code.cxf-spring-security</groupId>
+ <artifactId>samples</artifactId>
+ <version>2.3.0-SNAPSHOT</version>
+ <name>CXF - Spring Security integration :: Samples</name>
+ <packaging>pom</packaging>
+
+ <properties>
+ <spring.version>2.5.6</spring.version>
+ <slf4j.version>1.4.3</slf4j.version>
+ </properties>
+
+ <modules>
+ <module>jax-rs</module>
+ <module>wss</module>
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-web</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework.security</groupId>
+ <artifactId>spring-security-core-tiger</artifactId>
+ <version>2.0.4</version>
+ </dependency>
+
+ <!-- Required by in-memory user details service -->
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-tx</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+
+ <!-- This is required for <security:global-method-security> -->
+ <dependency>
+ <groupId>org.aspectj</groupId>
+ <artifactId>aspectjrt</artifactId>
+ <version>1.6.4</version>
+ </dependency>
+ <!-- Allow Spring to create proxies for classes that are not specified by interface -->
+ <dependency>
+ <groupId>cglib</groupId>
+ <artifactId>cglib-nodep</artifactId>
+ <version>2.1_3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.code.cxf-spring-security</groupId>
+ <artifactId>cxf-spring-security</artifactId>
+ <version>${version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.14</version>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>apache.snapshots</id>
+ <name>Apache Development Snapshot Repository</name>
+ <url>https://repository.apache.org/content/repositories/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <wtpversion>2.0</wtpversion>
+ </configuration>
+ </plugin>
+ <plugin>
+ <!-- This allows to run the sample in an embedded servlet container
+ using the following command: "mvn jetty:run" -->
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.10</version>
+ </plugin>
+ </plugins>
+ </build>
+</project>
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/wss/pom.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/wss/pom.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/wss/pom.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/wss/pom.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,58 @@
+<?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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.google.code.cxf-spring-security</groupId>
+ <artifactId>samples</artifactId>
+ <version>2.3.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <artifactId>wss-sample</artifactId>
+ <name>CXF - Spring Security integration :: Samples :: WS-Security</name>
+ <packaging>war</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-simple</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-ws-security</artifactId>
+ <version>${version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.sun.xml.messaging.saaj</groupId>
+ <artifactId>saaj-impl</artifactId>
+ <version>1.3.2</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.activation</groupId>
+ <artifactId>activation</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/wss/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/wss/soapui-project.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/wss/soapui-project.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/wss/soapui-project.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/wss/soapui-project.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<con:soapui-project name="WS-Security Sample" resourceRoot="${projectDir}" soapui-version="3.0.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="SampleServiceSoapBinding" type="wsdl" bindingName="{http://sample/}SampleServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/wss-sample/sample?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/wss-sample/sample?wsdl"><con:part><con:url>http://localhost:8080/wss-sample/sample?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="SampleService" targetNamespace="http://sample/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://sample/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://sample/">
+ <xsd:element name="sayHello" type="tns:sayHello"/>
+ <xsd:complexType name="sayHello">
+ <xsd:sequence>
+ <xsd:element minOccurs="0" name="arg0" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ <xsd:element name="sayHelloResponse" type="tns:sayHelloResponse"/>
+ <xsd:complexType name="sayHelloResponse">
+ <xsd:sequence>
+ <xsd:element minOccurs="0" name="return" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+ <wsdl:message name="sayHello">
+ <wsdl:part element="tns:sayHello" name="parameters"></wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="sayHelloResponse">
+ <wsdl:part element="tns:sayHelloResponse" name="parameters"></wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="SampleServicePortType">
+ <wsdl:operation name="sayHello">
+ <wsdl:input message="tns:sayHello" name="sayHello"></wsdl:input>
+ <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse"></wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="SampleServiceSoapBinding" type="tns:SampleServicePortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="sayHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="sayHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="sayHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="SampleService">
+ <wsdl:port binding="tns:SampleServiceSoapBinding" name="SampleServicePort">
+ <soap:address location="http://localhost:8080/wss-sample/sample"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8080/wss-sample/sample</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="sayHello" bindingOperationName="sayHello" type="Request-Response" outputName="sayHelloResponse" inputName="sayHello" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Unauthenticated"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/wss-sample/sample</con:endpoint><con:request><![CDATA[<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
+ <Body>
+ <sayHello xmlns="http://sample/">
+ <arg0>Joe</arg0>
+ </sayHello>
+ </Body>
+</Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://sample/SampleServicePortType/sayHello"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Joe" outgoingWss="Joe - Plaintext"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/wss-sample/sample</con:endpoint><con:request><![CDATA[<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
+ <Body>
+ <sayHello xmlns="http://sample/">
+ <arg0>Joe</arg0>
+ </sayHello>
+ </Body>
+</Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://sample/SampleServicePortType/sayHello"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Wrong password" outgoingWss="Wrong password"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/wss-sample/sample</con:endpoint><con:request><![CDATA[<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
+ <Body>
+ <sayHello xmlns="http://sample/">
+ <arg0>Joe</arg0>
+ </sayHello>
+ </Body>
+</Envelope>]]></con:request><con:credentials><con:username/><con:password/></con:credentials><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://sample/SampleServicePortType/sayHello"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:properties/><con:wssContainer><con:outgoing><con:name>Joe - Plaintext</con:name><con:entry type="Username" username="joe" password="password"><con:configuration><addCreated>false</addCreated><addNonce>false</addNonce><passwordType>PasswordText</passwordType></con:configuration></con:entry></con:outgoing><con:outgoing><con:name>Wrong password</con:name><con:entry type="Username" username="joe" password="wrongpassword"><con:configuration><addCreated>false</addCreated><addNonce>false</addNonce><passwordType>PasswordText</passwordType></con:configuration></con:entry></con:outgoing></con:wssContainer></con:soapui-project>
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/wss/soapui-project.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleService.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleService.java?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleService.java (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleService.java Mon Mar 1 20:06:25 2010
@@ -0,0 +1,5 @@
+package sample;
+
+public interface SampleService {
+ String sayHello(String name);
+}
\ No newline at end of file
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleService.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleServiceImpl.java
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleServiceImpl.java?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleServiceImpl.java (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleServiceImpl.java Mon Mar 1 20:06:25 2010
@@ -0,0 +1,7 @@
+package sample;
+
+public class SampleServiceImpl implements SampleService {
+ public String sayHello(String name) {
+ return "Hello " + name + "!";
+ }
+}
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/java/sample/SampleServiceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/resources/log4j.properties?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/resources/log4j.properties (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/resources/log4j.properties Mon Mar 1 20:06:25 2010
@@ -0,0 +1,9 @@
+# Set root logger level to DEBUG and its only appender to A1.
+log4j.rootLogger=DEBUG, A1
+
+# A1 is set to be a ConsoleAppender.
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%-5p %c %x - %m%n
Added: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/applicationContext.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/applicationContext.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/applicationContext.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/applicationContext.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:security="http://www.springframework.org/schema/security"
+ xmlns:ssec="http://cxf.apache.org/spring-security"
+ xmlns:simple="http://cxf.apache.org/simple"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd
+ http://cxf.apache.org/simple http://cxf.apache.org/schemas/simple.xsd
+ http://cxf.apache.org/spring-security http://cxf-spring-security.googlecode.com/svn/trunk/cxf-spring-security/src/main/resources/schemas/spring-security.xsd"
+ default-autowire="byName">
+
+ <import resource="classpath:META-INF/cxf/cxf.xml"/>
+ <import resource="classpath*:META-INF/cxf/cxf-*.xml"/>
+ <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
+
+ <security:authentication-provider>
+ <security:user-service>
+ <security:user name="joe" password="password" authorities="ROLE_USER,ROLE_ADMIN"/>
+ <security:user name="bob" password="password" authorities="ROLE_USER"/>
+ </security:user-service>
+ </security:authentication-provider>
+
+ <simple:server serviceClass="sample.SampleService" address="/sample">
+ <simple:serviceBean>
+ <bean class="sample.SampleServiceImpl"/>
+ </simple:serviceBean>
+ <simple:inInterceptors>
+ <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
+ <constructor-arg>
+ <map>
+ <entry key="action" value="UsernameToken"/>
+ <entry key="passwordType" value="PasswordText"/>
+ <entry key="passwordCallbackRef">
+ <ssec:server-password-callback-handler logExceptions="true" nestExceptions="false"/>
+ </entry>
+ </map>
+ </constructor-arg>
+ </bean>
+ </simple:inInterceptors>
+ <simple:features>
+ <ssec:spring-security-context-feature/>
+ </simple:features>
+ </simple:server>
+</beans>
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/web.xml?rev=917689&view=auto
==============================================================================
--- cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/web.xml (added)
+++ cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/web.xml Mon Mar 1 20:06:25 2010
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4"
+ xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+ <listener>
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+ </listener>
+ <servlet>
+ <servlet-name>CXFServlet</servlet-name>
+ <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>CXFServlet</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
Propchange: cxf/sandbox/veithen/cxf-spring-security/samples/wss/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native