[jboss-svn-commits] JBossWS SVN: r813 - in branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security: . wsse10Encrypt

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Aug 23 10:43:34 EDT 2006


Author: heiko.braun at jboss.com
Date: 2006-08-23 10:43:30 -0400 (Wed, 23 Aug 2006)
New Revision: 813

Added:
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java
Log:
wsse 1.0 encrypt test case client

Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java	2006-08-23 14:42:41 UTC (rev 812)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java	2006-08-23 14:43:30 UTC (rev 813)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class Echo {
+    protected java.lang.String request;
+    
+    public Echo() {
+    }
+    
+    public Echo(java.lang.String request) {
+        this.request = request;
+    }
+    
+    public java.lang.String getRequest() {
+        return request;
+    }
+    
+    public void setRequest(java.lang.String request) {
+        this.request = request;
+    }
+}


Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/Echo.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java	2006-08-23 14:42:41 UTC (rev 812)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java	2006-08-23 14:43:30 UTC (rev 813)
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class EchoResponse {
+    protected java.lang.String echoResult;
+    
+    public EchoResponse() {
+    }
+    
+    public EchoResponse(java.lang.String echoResult) {
+        this.echoResult = echoResult;
+    }
+    
+    public java.lang.String getEchoResult() {
+        return echoResult;
+    }
+    
+    public void setEchoResult(java.lang.String echoResult) {
+        this.echoResult = echoResult;
+    }
+}


Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EchoResponse.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java	2006-08-23 14:42:41 UTC (rev 812)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java	2006-08-23 14:43:30 UTC (rev 813)
@@ -0,0 +1,90 @@
+/*
+* 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.interop.microsoft.security.wsse10Encrypt;
+
+import junit.framework.Test;
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.test.ws.interop.microsoft.ClientScenario;
+import org.jboss.test.ws.interop.microsoft.InteropConfigFactory;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.rpc.Stub;
+
+/**
+ * @author Heiko Braun <heiko.braun at jboss.com>
+ * @version $Id$
+ * @since Aug 23, 2006
+ */
+public class EncryptTestCase extends JBossWSTest  {
+
+   IPingService port;
+
+   public static Test suite()
+   {
+      return JBossWSTestSetup.newTestSetup(EncryptTestCase.class, "jbossws-interop-wsse10Encrypt-client.jar");
+   }
+
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+
+      if (port == null)
+      {
+         InitialContext iniCtx = getInitialContext();
+         Service signService = (Service)iniCtx.lookup("java:comp/env/service/interop/IPingServiceSignEncrypt");
+         port = (IPingService)signService.getPort(IPingService.class);
+         configureClient();
+      }
+
+      System.setProperty("org.jboss.ws.wsse.keyStore", "resources/interop/microsoft/security/wsse10Shared/META-INF/alice.jks");
+      System.setProperty("org.jboss.ws.wsse.trustStore", "resources/interop/microsoft/security/wsse10Shared/META-INF/wsse10.truststore");
+      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 void configureClient() {
+
+      InteropConfigFactory factory = InteropConfigFactory.newInstance();
+      ClientScenario scenario = factory.createClientScenario(System.getProperty("client.scenario"));
+      if(scenario!=null)
+      {
+         log.info("Using scenario: " + scenario);
+         ((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, scenario.getTargetEndpoint().toString());
+      }
+      else
+      {
+         throw new IllegalStateException("Failed to load client scenario");
+      }
+   }
+
+   public void testSignEncrpyt() throws Exception
+   {
+      PingResponseType pingResponse = port.ping(
+          new PingType("signEncrypt", "JBossWS", "Hello World")
+      );
+      assertNotNull(pingResponse);
+   }
+}


Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/EncryptTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java	2006-08-23 14:42:41 UTC (rev 812)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java	2006-08-23 14:43:30 UTC (rev 813)
@@ -0,0 +1,13 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+public interface IPingService extends java.rmi.Remote {
+    public org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.PingResponseType ping(org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.PingType parameters) throws 
+         java.rmi.RemoteException;
+    public org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.EchoResponse echo(org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.Echo parameters) throws 
+         java.rmi.RemoteException;
+}


Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/IPingService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java	2006-08-23 14:42:41 UTC (rev 812)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java	2006-08-23 14:43:30 UTC (rev 813)
@@ -0,0 +1,46 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class PingResponseType {
+    protected java.lang.String scenario;
+    protected java.lang.String origin;
+    protected java.lang.String text;
+    
+    public PingResponseType() {
+    }
+    
+    public PingResponseType(java.lang.String scenario, java.lang.String origin, java.lang.String text) {
+        this.scenario = scenario;
+        this.origin = origin;
+        this.text = text;
+    }
+    
+    public java.lang.String getScenario() {
+        return scenario;
+    }
+    
+    public void setScenario(java.lang.String scenario) {
+        this.scenario = scenario;
+    }
+    
+    public java.lang.String getOrigin() {
+        return origin;
+    }
+    
+    public void setOrigin(java.lang.String origin) {
+        this.origin = origin;
+    }
+    
+    public java.lang.String getText() {
+        return text;
+    }
+    
+    public void setText(java.lang.String text) {
+        this.text = text;
+    }
+}


Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingResponseType.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java	2006-08-23 14:42:41 UTC (rev 812)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java	2006-08-23 14:43:30 UTC (rev 813)
@@ -0,0 +1,12 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+import javax.xml.rpc.*;
+
+public interface PingService10 extends javax.xml.rpc.Service {
+    public org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt.IPingService getMutualCertificate10SignEncrypt_IPingService() throws ServiceException;
+}


Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingService10.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java	2006-08-23 14:42:41 UTC (rev 812)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java	2006-08-23 14:43:30 UTC (rev 813)
@@ -0,0 +1,46 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.interop.microsoft.security.wsse10Encrypt;
+
+
+public class PingType {
+    protected java.lang.String scenario;
+    protected java.lang.String origin;
+    protected java.lang.String text;
+    
+    public PingType() {
+    }
+    
+    public PingType(java.lang.String scenario, java.lang.String origin, java.lang.String text) {
+        this.scenario = scenario;
+        this.origin = origin;
+        this.text = text;
+    }
+    
+    public java.lang.String getScenario() {
+        return scenario;
+    }
+    
+    public void setScenario(java.lang.String scenario) {
+        this.scenario = scenario;
+    }
+    
+    public java.lang.String getOrigin() {
+        return origin;
+    }
+    
+    public void setOrigin(java.lang.String origin) {
+        this.origin = origin;
+    }
+    
+    public java.lang.String getText() {
+        return text;
+    }
+    
+    public void setText(java.lang.String text) {
+        this.text = text;
+    }
+}


Property changes on: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/interop/microsoft/security/wsse10Encrypt/PingType.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jboss-svn-commits mailing list