Author: darran.lofthouse(a)jboss.com
Date: 2008-11-18 11:34:04 -0500 (Tue, 18 Nov 2008)
New Revision: 8754
Added:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Alice.cer
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Bob.cer
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/John.cer
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/keystore.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/alice-sign.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/bob-sign.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/john-sign.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/readme.txt
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/wsse10.truststore
Removed:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Alice.cer
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Bob.cer
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/John.cer
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/keystore.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/alice-sign.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/bob-sign.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/john-sign.jks
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/readme.txt
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/wsse10.truststore
Modified:
stack/native/branches/dlofthouse/JBPAPP-1349/ant-import-tests/build-jars-jaxws.xml
Log:
Backported -r 7155
Modified:
stack/native/branches/dlofthouse/JBPAPP-1349/ant-import-tests/build-jars-jaxws.xml
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/ant-import-tests/build-jars-jaxws.xml 2008-11-18
15:38:43 UTC (rev 8753)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/ant-import-tests/build-jars-jaxws.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -309,6 +309,30 @@
<include name="wsdl/**"/>
</metainf>
</jar>
+
+ <!-- jaxws-jbws2116-->
+ <jar destfile="${tests.output.dir}/libs/jaxws-jbws2116.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2116/*.class"/>
+ <exclude
name="org/jboss/test/ws/jaxws/jbws2116/*TestCase.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/jbws2116/META-INF">
+ <include name="jboss-wsse-server.xml"/>
+ <include name="jboss.xml"/>
+ </metainf>
+ <metainf dir="${tests.output.dir}/resources/jaxws/jbws2116/">
+ <include name="wsse10.truststore"/>
+ <include name="bob-sign.jks"/>
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/libs/jaxws-jbws2116.sar">
+ <metainf
dir="${tests.output.dir}/resources/jaxws/jbws2116/META-INF">
+ <include name="jboss-service.xml"/>
+ <include name="login-config.xml"/>
+ <include name="keystore.jks"/>
+ <include name="jbossws-roles.properties"/>
+ </metainf>
+ </jar>
<!-- jaxws-jbws1283 -->
<jar destfile="${tests.output.dir}/libs/jaxws-jbws1283.jar">
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2116)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,148 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2116;
-
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Service;
-
-import junit.framework.Test;
-
-import org.jboss.ws.core.StubExt;
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * Test case for certificate authentication & authorization with WS-Security
- *
http://jira.jboss.org/jira/browse/JBWS-2116
- *
- * @author alessio.soldano(a)jboss.com
- * @since 24-May-2008
- */
-public class CertAuthTestCase extends JBossWSTest
-{
- private String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-jbws2116";
- private String keyStore;
- private String trustStore;
- private String keyStorePassword;
- private String trustStorePassword;
- private String keyStoreType;
- private String trustStoreType;
-
- public static Test suite() throws Exception
- {
- return new JBossWSTestSetup(CertAuthTestCase.class, "jaxws-jbws2116.sar
jaxws-jbws2116.jar");
- }
-
- protected void setUp() throws Exception
- {
- super.setUp();
- //Backup values
- keyStore = System.getProperty("org.jboss.ws.wsse.keyStore");
- keyStorePassword =
System.getProperty("org.jboss.ws.wsse.keyStorePassword");
- keyStoreType = System.getProperty("org.jboss.ws.wsse.keyStoreType");
- trustStore = System.getProperty("org.jboss.ws.wsse.trustStore");
- trustStorePassword =
System.getProperty("org.jboss.ws.wsse.trustStorePassword");
- trustStoreType = System.getProperty("org.jboss.ws.wsse.trustStoreType");
-
- }
-
- protected void tearDown() throws Exception
- {
- //Restore environment
- System.setProperty("org.jboss.ws.wsse.keyStore", keyStore);
- System.setProperty("org.jboss.ws.wsse.trustStore", trustStore);
- System.setProperty("org.jboss.ws.wsse.keyStorePassword",
keyStorePassword);
- System.setProperty("org.jboss.ws.wsse.trustStorePassword",
trustStorePassword);
- System.setProperty("org.jboss.ws.wsse.keyStoreType", keyStoreType);
- System.setProperty("org.jboss.ws.wsse.trustStoreType", trustStoreType);
- super.tearDown();
- }
-
- public void testAuthAlice() throws Exception
- {
- setEnvironment("alice");
- Hello port = getPort();
- String msg = "Hi!";
- try
- {
- String result = port.echo(msg);
- assertEquals(msg, result);
- result = port.echo2(msg);
- assertEquals(msg, result);
- }
- catch (Exception e)
- {
- fail();
- }
- }
-
- public void testAuthJohn() throws Exception
- {
- setEnvironment("john");
- Hello port = getPort();
- String msg = "Hi!";
- try
- {
- String result = port.echo(msg);
- assertEquals(msg, result);
- }
- catch (Exception e)
- {
- fail();
- }
- try
- {
- port.echo2(msg);
- fail("John shouldn't be allowed to run this method!");
- }
- catch (Exception e)
- {
- //OK
- }
- }
-
- private void setEnvironment(String name)
- {
- //Setup values
- System.setProperty("org.jboss.ws.wsse.keyStore",
getResourceFile("jaxws/jbws2116/" + name + "-sign.jks").getPath());
- System.setProperty("org.jboss.ws.wsse.trustStore",
getResourceFile("jaxws/jbws2116/wsse10.truststore").getPath());
- System.setProperty("org.jboss.ws.wsse.keyStorePassword",
"password");
- System.setProperty("org.jboss.ws.wsse.trustStorePassword",
"password");
- System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
- System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");
- }
-
- private Hello getPort() throws Exception
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- QName serviceName = new QName("http://org.jboss.ws/jbws2116",
"HelloService");
- Hello port = Service.create(wsdlURL, serviceName).getPort(Hello.class);
- URL securityURL =
getResourceURL("jaxws/jbws2116/META-INF/jboss-wsse-client.xml");
- ((StubExt)port).setSecurityConfig(securityURL.toExternalForm());
- ((StubExt)port).setConfigName("Standard WSSecurity Client");
- ((BindingProvider)port).getRequestContext().put(StubExt.PROPERTY_AUTH_TYPE,
StubExt.PROPERTY_AUTH_TYPE_WSSE);
- return port;
- }
-}
\ No newline at end of file
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/CertAuthTestCase.java 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,150 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2116;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ws.core.StubExt;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test case for certificate authentication & authorization with WS-Security
+ *
http://jira.jboss.org/jira/browse/JBWS-2116
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 24-May-2008
+ */
+public class CertAuthTestCase extends JBossWSTest
+{
+ private String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-jbws2116";
+ private String keyStore;
+ private String trustStore;
+ private String keyStorePassword;
+ private String trustStorePassword;
+ private String keyStoreType;
+ private String trustStoreType;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(CertAuthTestCase.class, "jaxws-jbws2116.sar
jaxws-jbws2116.jar");
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ //Backup values
+ keyStore = System.getProperty("org.jboss.ws.wsse.keyStore");
+ keyStorePassword =
System.getProperty("org.jboss.ws.wsse.keyStorePassword");
+ keyStoreType = System.getProperty("org.jboss.ws.wsse.keyStoreType");
+ trustStore = System.getProperty("org.jboss.ws.wsse.trustStore");
+ trustStorePassword =
System.getProperty("org.jboss.ws.wsse.trustStorePassword");
+ trustStoreType = System.getProperty("org.jboss.ws.wsse.trustStoreType");
+
+ }
+
+ protected void tearDown() throws Exception
+ {
+ //Restore environment
+ System.setProperty("org.jboss.ws.wsse.keyStore", keyStore);
+ System.setProperty("org.jboss.ws.wsse.trustStore", trustStore);
+ System.setProperty("org.jboss.ws.wsse.keyStorePassword",
keyStorePassword);
+ System.setProperty("org.jboss.ws.wsse.trustStorePassword",
trustStorePassword);
+ System.setProperty("org.jboss.ws.wsse.keyStoreType", keyStoreType);
+ System.setProperty("org.jboss.ws.wsse.trustStoreType", trustStoreType);
+ super.tearDown();
+ }
+
+ public void testAuthAlice() throws Exception
+ {
+ setEnvironment("alice");
+ Hello port = getPort();
+ String msg = "Hi!";
+ try
+ {
+ String result = port.echo(msg);
+ assertEquals(msg, result);
+ result = port.echo2(msg);
+ assertEquals(msg, result);
+ }
+ catch (Exception e)
+ {
+ fail();
+ }
+ }
+
+ public void testAuthJohn() throws Exception
+ {
+ setEnvironment("john");
+ Hello port = getPort();
+ String msg = "Hi!";
+ try
+ {
+ String result = port.echo(msg);
+ assertEquals(msg, result);
+ }
+ catch (Exception e)
+ {
+ fail();
+ }
+ try
+ {
+ port.echo2(msg);
+ fail("John shouldn't be allowed to run this method!");
+ }
+ catch (Exception e)
+ {
+ //OK
+ }
+ }
+
+ private void setEnvironment(String name)
+ {
+ //Setup values
+
+ System.setProperty("org.jboss.ws.wsse.keyStore", new
File("resources/jaxws/jbws2116/" + name + "-sign.jks").getPath());
+ System.setProperty("org.jboss.ws.wsse.trustStore", new
File("resources/jaxws/jbws2116/wsse10.truststore").getPath());
+ System.setProperty("org.jboss.ws.wsse.keyStorePassword",
"password");
+ System.setProperty("org.jboss.ws.wsse.trustStorePassword",
"password");
+ System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
+ System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");
+ }
+
+ private Hello getPort() throws Exception
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName serviceName = new QName("http://org.jboss.ws/jbws2116",
"HelloService");
+ Hello port = Service.create(wsdlURL, serviceName).getPort(Hello.class);
+ URL securityURL = new
File("resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml").toURL();
+ ((StubExt)port).setSecurityConfig(securityURL.toExternalForm());
+ ((StubExt)port).setConfigName("Standard WSSecurity Client");
+ ((BindingProvider)port).getRequestContext().put(StubExt.PROPERTY_AUTH_TYPE,
StubExt.PROPERTY_AUTH_TYPE_WSSE);
+ return port;
+ }
+}
\ No newline at end of file
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2116;
-
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-@WebService(name = "Hello", targetNamespace =
"http://org.jboss.ws/jbws2116")
-@SOAPBinding(style = SOAPBinding.Style.RPC)
-public interface Hello
-{
- @WebMethod
- public String echo(String par);
-
- @WebMethod
- public String echo2(String par);
-}
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/Hello.java 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2116;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService(name = "Hello", targetNamespace =
"http://org.jboss.ws/jbws2116")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface Hello
+{
+ @WebMethod
+ public String echo(String par);
+
+ @WebMethod
+ public String echo2(String par);
+}
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,65 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2116;
-
-import javax.annotation.Resource;
-import javax.annotation.security.RolesAllowed;
-import javax.ejb.Stateless;
-import javax.jws.WebMethod;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-import javax.xml.ws.WebServiceContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.annotation.EndpointConfig;
-import org.jboss.wsf.spi.annotation.WebContext;
-
-
-@Stateless
-@WebService(name = "Hello", serviceName = "HelloService",
targetNamespace = "http://org.jboss.ws/jbws2116")
-@SOAPBinding(style = SOAPBinding.Style.RPC)
-@WebContext(contextRoot = "/jaxws-jbws2116", urlPattern = "/*")
-@EndpointConfig(configName = "Standard WSSecurity Endpoint")
-//We're declaring the domain in the jboss.xml since we have different annotation
packages for AS5 and AS42
-//@SecurityDomain("JBossWS")
-public class HelloJavaBean
-{
- private Logger log = Logger.getLogger(HelloJavaBean.class);
- @Resource
- private WebServiceContext ctx;
-
- @WebMethod
- @RolesAllowed({"friend"})
- public String echo(String par)
- {
- log.info("User principal: " + ctx.getUserPrincipal());
- return par;
- }
-
- @WebMethod
- @RolesAllowed({"girlfriend"})
- public String echo2(String par)
- {
- log.info("User principal: " + ctx.getUserPrincipal());
- return par;
- }
-}
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/java/org/jboss/test/ws/jaxws/jbws2116/HelloJavaBean.java 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2116;
+
+import javax.annotation.Resource;
+import javax.annotation.security.RolesAllowed;
+import javax.ejb.Stateless;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.WebServiceContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.annotation.EndpointConfig;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+
+@Stateless
+@WebService(name = "Hello", serviceName = "HelloService",
targetNamespace = "http://org.jboss.ws/jbws2116")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+@WebContext(contextRoot = "/jaxws-jbws2116", urlPattern = "/*")
+@EndpointConfig(configName = "Standard WSSecurity Endpoint")
+//We're declaring the domain in the jboss.xml since we have different annotation
packages for AS5 and AS42
+//@SecurityDomain("JBossWS")
+public class HelloJavaBean
+{
+ private Logger log = Logger.getLogger(HelloJavaBean.class);
+ @Resource
+ private WebServiceContext ctx;
+
+ @WebMethod
+ @RolesAllowed({"friend"})
+ public String echo(String par)
+ {
+ log.info("User principal: " + ctx.getUserPrincipal());
+ return par;
+ }
+
+ @WebMethod
+ @RolesAllowed({"girlfriend"})
+ public String echo2(String par)
+ {
+ log.info("User principal: " + ctx.getUserPrincipal());
+ return par;
+ }
+}
Copied: stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Alice.cer
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Alice.cer
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/Alice.cer)
===================================================================
(Binary files differ)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Bob.cer
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/Bob.cer
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/Bob.cer)
===================================================================
(Binary files differ)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/John.cer
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/John.cer
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/John.cer)
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<server>
- <!-- ==================================================================== -->
- <!-- JassSecurityDomain required to use CertRolesLoginModule -->
- <!-- ==================================================================== -->
- <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
- name="jboss.security:service=SecurityDomain">
- <constructor>
- <arg type="java.lang.String" value="JBossWSCert"/>
- </constructor>
- <attribute
name="KeyStoreURL">resource:META-INF/keystore.jks</attribute>
- <attribute name="KeyStorePass">password</attribute>
- <depends>jboss.security:service=JaasSecurityManager</depends>
- </mbean>
- <!-- ==================================================================== -->
- <!-- Dynamic login config to install the CertRolesLoginModule -->
- <!-- ==================================================================== -->
- <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
- name="jboss:service=DynamicLoginConfig">
- <attribute
name="AuthConfig">META-INF/login-config.xml</attribute>
- <!-- The service which supports dynamic processing of login-config.xml
- configurations.
- -->
- <depends optional-attribute-name="LoginConfigService">
- jboss.security:service=XMLLoginConfig
- </depends>
- <!-- Optionally specify the security mgr service to use when
- this service is stopped to flush the auth caches of the domains
- registered by this service.
- -->
- <depends optional-attribute-name="SecurityManagerService">
- jboss.security:service=JaasSecurityManager
- </depends>
- </mbean>
-</server>
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-service.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <!-- ==================================================================== -->
+ <!-- JassSecurityDomain required to use CertRolesLoginModule -->
+ <!-- ==================================================================== -->
+ <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
+ name="jboss.security:service=SecurityDomain">
+ <constructor>
+ <arg type="java.lang.String" value="JBossWSCert"/>
+ </constructor>
+ <attribute
name="KeyStoreURL">resource:META-INF/keystore.jks</attribute>
+ <attribute name="KeyStorePass">password</attribute>
+ <depends>jboss.security:service=JaasSecurityManager</depends>
+ </mbean>
+ <!-- ==================================================================== -->
+ <!-- Dynamic login config to install the CertRolesLoginModule -->
+ <!-- ==================================================================== -->
+ <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
+ name="jboss:service=DynamicLoginConfig">
+ <attribute
name="AuthConfig">META-INF/login-config.xml</attribute>
+ <!-- The service which supports dynamic processing of login-config.xml
+ configurations.
+ -->
+ <depends optional-attribute-name="LoginConfigService">
+ jboss.security:service=XMLLoginConfig
+ </depends>
+ <!-- Optionally specify the security mgr service to use when
+ this service is stopped to flush the auth caches of the domains
+ registered by this service.
+ -->
+ <depends optional-attribute-name="SecurityManagerService">
+ jboss.security:service=JaasSecurityManager
+ </depends>
+ </mbean>
+</server>
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
- <config>
- <sign type="x509v3" alias="1"
includeTimestamp="false"/>
- <requires>
- <signature/>
- </requires>
- </config>
-</jboss-ws-security>
\ No newline at end of file
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-client.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <config>
+ <sign type="x509v3" alias="1"
includeTimestamp="false"/>
+ <requires>
+ <signature/>
+ </requires>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
- <key-store-file>META-INF/bob-sign.jks</key-store-file>
- <key-store-password>password</key-store-password>
- <key-store-type>jks</key-store-type>
- <trust-store-file>META-INF/wsse10.truststore</trust-store-file>
- <trust-store-password>password</trust-store-password>
- <config>
- <sign type="x509v3" alias="1"
includeTimestamp="false"/>
- <requires>
- <signature/>
- </requires>
- </config>
-</jboss-ws-security>
\ No newline at end of file
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss-wsse-server.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-ws-security
xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
+ <key-store-file>META-INF/bob-sign.jks</key-store-file>
+ <key-store-password>password</key-store-password>
+ <key-store-type>jks</key-store-type>
+ <trust-store-file>META-INF/wsse10.truststore</trust-store-file>
+ <trust-store-password>password</trust-store-password>
+ <config>
+ <sign type="x509v3" alias="1"
includeTimestamp="false"/>
+ <requires>
+ <signature/>
+ </requires>
+ </config>
+</jboss-ws-security>
\ No newline at end of file
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<jboss>
- <security-domain>java:/jaas/JBossWSCert</security-domain>
-</jboss>
\ No newline at end of file
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jboss.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss>
+ <security-domain>java:/jaas/JBossWSCert</security-domain>
+</jboss>
\ No newline at end of file
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,3 +0,0 @@
-# A sample roles.properties file for use with the CertRolesLoginModule
-alice=friend,girlfriend
-john=friend
\ No newline at end of file
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/jbossws-roles.properties 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,3 @@
+# A sample roles.properties file for use with the CertRolesLoginModule
+alice=friend,girlfriend
+john=friend
\ No newline at end of file
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/keystore.jks
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/keystore.jks
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/keystore.jks)
===================================================================
(Binary files differ)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,20 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE policy PUBLIC
- "-//JBoss//DTD JBOSS Security Config 3.0//EN"
- "http://www.jboss.org/j2ee/dtd/security_config.dtd">
-
-<policy>
-
- <application-policy name="JBossWSCert">
- <authentication>
- <login-module
code="org.jboss.security.auth.spi.CertRolesLoginModule"
- flag="required">
- <module-option
name="rolesProperties">META-INF/jbossws-roles.properties</module-option>
- <module-option
name="unauthenticatedIdentity">anonymous</module-option>
- <module-option
name="securityDomain">java:/jaas/JBossWSCert</module-option>
- </login-module>
- </authentication>
- </application-policy>
-
-</policy>
-
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/META-INF/login-config.xml 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,20 @@
+<?xml version='1.0'?>
+<!DOCTYPE policy PUBLIC
+ "-//JBoss//DTD JBOSS Security Config 3.0//EN"
+ "http://www.jboss.org/j2ee/dtd/security_config.dtd">
+
+<policy>
+
+ <application-policy name="JBossWSCert">
+ <authentication>
+ <login-module
code="org.jboss.security.auth.spi.CertRolesLoginModule"
+ flag="required">
+ <module-option
name="rolesProperties">META-INF/jbossws-roles.properties</module-option>
+ <module-option
name="unauthenticatedIdentity">anonymous</module-option>
+ <module-option
name="securityDomain">java:/jaas/JBossWSCert</module-option>
+ </login-module>
+ </authentication>
+ </application-policy>
+
+</policy>
+
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/alice-sign.jks
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/alice-sign.jks
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/alice-sign.jks)
===================================================================
(Binary files differ)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/bob-sign.jks
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/bob-sign.jks
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/bob-sign.jks)
===================================================================
(Binary files differ)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/john-sign.jks
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/john-sign.jks
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/john-sign.jks)
===================================================================
(Binary files differ)
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/readme.txt
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/readme.txt 2008-05-24
16:45:14 UTC (rev 7155)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/readme.txt 2008-11-18
16:34:04 UTC (rev 8754)
@@ -1,114 +0,0 @@
- -------------------------------------
- Certificates & keystores
- -------------------------------------
-
-
- Alice - Client 1 John - Client 2 Bob - Server
-
-Signature
--> Keystore alice-sign.jks john-sign.jks bob-sign.jks
--> Truststore wsse10.truststore wsse10.truststore wsse10.truststore
-
-
-> keytool -printcert -file Alice.cer
-
-Proprietario: CN=Alice, OU=OASIS Interop Test Cert, O=OASIS
-Organismo di emissione: CN=OASIS Interop Test CA, O=OASIS
-Numero di serie: 33a6047fb155631fed6721178150a899
-Valido da Sat Mar 19 01:00:00 CET 2005 a Tue Mar 20 00:59:59 CET 2018
-Impronte digitali certificato:
- MD5: 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
- SHA1: 6E:0E:88:F3:6E:BB:87:44:D4:70:F6:2F:60:4D:03:EA:4E:BE:50:94
-
-
---------------------------------------------------------------------------------------
-> keytool -printcert -file Bob.cer
-Proprietario: CN=Bob, OU=OASIS Interop Test Cert, O=OASIS
-Organismo di emissione: CN=OASIS Interop Test CA, O=OASIS
-Numero di serie: 6038eedbfeac9bbec89d87d3abae71f8
-Valido da Sat Mar 19 01:00:00 CET 2005 a Tue Mar 20 00:59:59 CET 2018
-Impronte digitali certificato:
- MD5: 89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
- SHA1: 35:03:34:20:1B:EE:A6:50:2D:11:34:2F:93:EE:A0:9F:C0:B5:DF:01
-
---------------------------------------------------------------------------------------
-> keytool -printcert -file John.cer
-Proprietario: CN=John, OU=Test, O=Test, L=Test, ST=Test, C=IT
-Organismo di emissione: CN=John, OU=Test, O=Test, L=Test, ST=Test, C=IT
-Numero di serie: 4832ac71
-Valido da Tue May 20 12:48:17 CEST 2008 a Fri May 18 12:48:17 CEST 2018
-Impronte digitali certificato:
- MD5: C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
- SHA1: 0A:22:01:1C:11:E0:CC:33:D7:D1:97:D6:BF:0B:3B:77:A3:6C:93:70
-
-
---------------------------------------------------------------------------------------
-keytool -list -keystore wsse10.truststore
-Immettere la password del keystore: password
-
-Tipo keystore: jks
-Provider keystore: SUN
-
-Il keystore contiene 3 entry
-
-alice, 9-mar-2006, trustedCertEntry,
-Impronta digitale certificato (MD5): 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
-bob, 9-mar-2006, trustedCertEntry,
-Impronta digitale certificato (MD5): 89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
-john, 20-mag-2008, trustedCertEntry,
-Impronta digitale certificato (MD5): C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
-
-
---------------------------------------------------------------------------------------
-> keytool -list -keystore alice-sign.jks
-Immettere la password del keystore: password
-
-Tipo keystore: jks
-Provider keystore: SUN
-
-Il keystore contiene 2 entry
-
-1, 27-ott-2007, keyEntry,
-Impronta digitale certificato (MD5): 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
-
-
---------------------------------------------------------------------------------------
-> keytool -list -keystore bob-sign.jks
-Immettere la password del keystore: password
-
-Tipo keystore: jks
-Provider keystore: SUN
-
-Il keystore contiene 3 entry
-
-1, 27-ott-2007, keyEntry,
-Impronta digitale certificato (MD5): 89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
-
-
---------------------------------------------------------------------------------------
-> keytool -list -keystore john-sign.jks
-Immettere la password del keystore: password
-
-Tipo keystore: jks
-Provider keystore: SUN
-
-Il keystore contiene 2 entry
-
-1, 20-mag-2008, keyEntry,
-Impronta digitale certificato (MD5): C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
-
-
---------------------------------------------------------------------------------------
-keytool -list -keystore keystore.jks
-Immettere la password del keystore: password
-
-Tipo keystore: jks
-Provider keystore: SUN
-
-Il keystore contiene 3 entry
-
-alice, 9-mar-2006, trustedCertEntry,
-Impronta digitale certificato (MD5): 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
-john, 20-mag-2008, trustedCertEntry,
-Impronta digitale certificato (MD5): C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
-
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/readme.txt
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/readme.txt)
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/readme.txt
(rev 0)
+++
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/readme.txt 2008-11-18
16:34:04 UTC (rev 8754)
@@ -0,0 +1,114 @@
+ -------------------------------------
+ Certificates & keystores
+ -------------------------------------
+
+
+ Alice - Client 1 John - Client 2 Bob - Server
+
+Signature
+-> Keystore alice-sign.jks john-sign.jks bob-sign.jks
+-> Truststore wsse10.truststore wsse10.truststore wsse10.truststore
+
+
+> keytool -printcert -file Alice.cer
+
+Proprietario: CN=Alice, OU=OASIS Interop Test Cert, O=OASIS
+Organismo di emissione: CN=OASIS Interop Test CA, O=OASIS
+Numero di serie: 33a6047fb155631fed6721178150a899
+Valido da Sat Mar 19 01:00:00 CET 2005 a Tue Mar 20 00:59:59 CET 2018
+Impronte digitali certificato:
+ MD5: 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+ SHA1: 6E:0E:88:F3:6E:BB:87:44:D4:70:F6:2F:60:4D:03:EA:4E:BE:50:94
+
+
+--------------------------------------------------------------------------------------
+> keytool -printcert -file Bob.cer
+Proprietario: CN=Bob, OU=OASIS Interop Test Cert, O=OASIS
+Organismo di emissione: CN=OASIS Interop Test CA, O=OASIS
+Numero di serie: 6038eedbfeac9bbec89d87d3abae71f8
+Valido da Sat Mar 19 01:00:00 CET 2005 a Tue Mar 20 00:59:59 CET 2018
+Impronte digitali certificato:
+ MD5: 89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
+ SHA1: 35:03:34:20:1B:EE:A6:50:2D:11:34:2F:93:EE:A0:9F:C0:B5:DF:01
+
+--------------------------------------------------------------------------------------
+> keytool -printcert -file John.cer
+Proprietario: CN=John, OU=Test, O=Test, L=Test, ST=Test, C=IT
+Organismo di emissione: CN=John, OU=Test, O=Test, L=Test, ST=Test, C=IT
+Numero di serie: 4832ac71
+Valido da Tue May 20 12:48:17 CEST 2008 a Fri May 18 12:48:17 CEST 2018
+Impronte digitali certificato:
+ MD5: C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
+ SHA1: 0A:22:01:1C:11:E0:CC:33:D7:D1:97:D6:BF:0B:3B:77:A3:6C:93:70
+
+
+--------------------------------------------------------------------------------------
+keytool -list -keystore wsse10.truststore
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 3 entry
+
+alice, 9-mar-2006, trustedCertEntry,
+Impronta digitale certificato (MD5): 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+bob, 9-mar-2006, trustedCertEntry,
+Impronta digitale certificato (MD5): 89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
+john, 20-mag-2008, trustedCertEntry,
+Impronta digitale certificato (MD5): C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
+
+
+--------------------------------------------------------------------------------------
+> keytool -list -keystore alice-sign.jks
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 2 entry
+
+1, 27-ott-2007, keyEntry,
+Impronta digitale certificato (MD5): 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+
+
+--------------------------------------------------------------------------------------
+> keytool -list -keystore bob-sign.jks
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 3 entry
+
+1, 27-ott-2007, keyEntry,
+Impronta digitale certificato (MD5): 89:3E:86:D2:4F:9C:E7:39:B6:71:8A:EF:00:C5:89:DC
+
+
+--------------------------------------------------------------------------------------
+> keytool -list -keystore john-sign.jks
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 2 entry
+
+1, 20-mag-2008, keyEntry,
+Impronta digitale certificato (MD5): C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
+
+
+--------------------------------------------------------------------------------------
+keytool -list -keystore keystore.jks
+Immettere la password del keystore: password
+
+Tipo keystore: jks
+Provider keystore: SUN
+
+Il keystore contiene 3 entry
+
+alice, 9-mar-2006, trustedCertEntry,
+Impronta digitale certificato (MD5): 57:CE:81:F1:03:C4:2C:F7:5B:1A:DE:AC:43:64:0A:84
+john, 20-mag-2008, trustedCertEntry,
+Impronta digitale certificato (MD5): C8:64:7A:4A:67:AC:73:A2:48:26:0A:B3:84:1D:0C:BB
+
Deleted:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/wsse10.truststore
===================================================================
(Binary files differ)
Copied:
stack/native/branches/dlofthouse/JBPAPP-1349/src/test/resources/jaxws/jbws2116/wsse10.truststore
(from rev 7155,
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2116/wsse10.truststore)
===================================================================
(Binary files differ)