Author: prabath
Date: Fri Dec 19 09:56:22 2008
New Revision: 27432
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=27432

Log:
fixed issues with sts sample

Modified:
   trunk/wsas/java/modules/samples/sts-sample/README
   trunk/wsas/java/modules/samples/sts-sample/build.xml

Modified: trunk/wsas/java/modules/samples/sts-sample/README
URL: 
http://wso2.org/svn/browse/wso2/trunk/wsas/java/modules/samples/sts-sample/README?rev=27432&r1=27431&r2=27432&view=diff
==============================================================================
--- trunk/wsas/java/modules/samples/sts-sample/README   (original)
+++ trunk/wsas/java/modules/samples/sts-sample/README   Fri Dec 19 09:56:22 2008
@@ -1,33 +1,36 @@
-Sample to demonstrate the use of Security Token Service
-===============================================================================
-
-Please refer sample-guide.html for detailed instructions Security Token 
Service on WSAS Documentation.
-
-Please follow the given steps:
-
-1.) Setup the sample by running the given Apache Ant build.
-    $ ant
-
-2.) Start WSO2 WSAS (If you haven't already started it)
-
-3.) Log into WSO2 WSAS administration console.
-
-4.) Select "wso2wsas-sts" service and setup security scenario #3 on it.
-    Make sure wso2wsas.jks keystore (WSO2WSAS keystore) is used.
-
-5.) Select "echo" service and copy the http service address.
-    Select "wso2wsas-sts" service and navigate to STS Configuration.
-    Paste/type the http endpoint address of "echo" service in 
-      "Add new trusted service"->"Endpoint Address"
-    Select the WSO2WSAS private key's certificate alias (wso2wsas)
-    
-6.) Select echo service and setup security scenario #12 on it.
-    Makesure wso2wsas.jks keystore (WSO2WSAS keystore) is used.
-
-7.) Upload sts-sample/conf/client.cert into the wso2wsas keystore using the 
-    WSO2WSAS admin console.
-
-8.) Run client
-     $ ./run-client.sh <wso2wsas-sts-http-address> <echo-service-http-address>
-       OR 
-     path\>run-client.bat  <wso2wsas-sts-http-address> 
<echo-service-http-address>
+Sample to demonstrate the use of Security Token Service
+===============================================================================
+
+Please refer sample-guide.html for detailed instructions Security Token 
Service on WSAS Documentation.
+
+Please follow the given steps:
+
+1.) Setup the sample by running the given Apache Ant build.
+    $ ant
+
+2.) Start WSO2 WSAS (If you haven't already started it)
+
+3.) Log into WSO2 WSAS administration console.
+
+4.) Select "wso2carbon-sts" service and setup security scenario "Sign and 
encrypt - X509 Authentication" on it.
+    Make sure wso2carbon.jks keystore (WSO2WSAS keystore) is used.
+
+5.) Select "HelloService" service and copy the http service address.
+
+
+6.) Select "wso2carbon-sts" service and navigate to "Configure STS".
+    Paste/type the http endpoint address of "HelloService" service in 
+      "Add new trusted service"->"Endpoint Address"
+    Select the WSO2WSAS private key's certificate alias (wso2carbon)
+    
+7.) Select "HelloService" service and setup security scenario 
+    "SecureConversation - Sign and Encrypt - Service as STS - Bootstrap policy 
- Sign and Encrypt , X509 Authentication" on it.
+    Makesure wso2carbon.jks keystore (WSO2WSAS keystore) is used.
+
+7.) Upload sts-sample/conf/client.cert into the wso2carbonkeystore using the 
+    WSO2WSAS admin console.
+
+8.) Run client
+     $ ./run-client.sh <wso2carbon-sts-http-address> 
<hello-service-http-address>
+       OR 
+     path\>run-client.bat  <wso2carbon-sts-http-address> 
<hello-service-http-address>

Modified: trunk/wsas/java/modules/samples/sts-sample/build.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/wsas/java/modules/samples/sts-sample/build.xml?rev=27432&r1=27431&r2=27432&view=diff
==============================================================================
--- trunk/wsas/java/modules/samples/sts-sample/build.xml        (original)
+++ trunk/wsas/java/modules/samples/sts-sample/build.xml        Fri Dec 19 
09:56:22 2008
@@ -1,67 +1,82 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
-  ~
-  ~ Licensed 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 name="project" default="compile">
-
-    <property name="dir.wso2wsas" value="../../"/>
-    <property name="dir.src" value="src"/>
-       <property name="dir.classes" value="temp/classes"/>
-    <property name="dir.libs" value="${dir.wso2wsas}/repository/lib/"/>
-    <property name="dir.client.repo" value="temp/client-repo"/>
-
-    <ant antfile="${dir.wso2wsas}/bin/build.xml"/>
-       
-    <path id="classpath.libraries">
-        <fileset dir="${dir.libs}">
-            <include name="**/*.jar"/>
-        </fileset>
-    </path>
-    
-    <target name="compile" depends="clean, client-repo, keys">
-        <mkdir dir="${dir.classes}" />
-        <javac srcdir="${dir.src}" destdir="${dir.classes}" debug="on">
-            <classpath refid="classpath.libraries"/>
-        </javac>
-    </target>
-    
-    <target name="client-repo">
-        <mkdir dir="${dir.client.repo}"/>
-        <mkdir dir="${dir.client.repo}/modules/"/>
-        <copy todir="${dir.client.repo}/modules/">
-            <fileset dir="${dir.wso2wsas}/repository/modules">
-                <include name="**/*rampart*"/>
-                <include name="**/*addressing*"/>
-            </fileset>
-        </copy>
-    </target>
-    
-    <target name="keys">
-        <java classname="org.wso2.utils.security.KeyImporter">
-            <arg value="${dir.wso2wsas}/conf/wso2wsas.jks"/>
-            <arg value="wso2wsas"/>
-            <arg value="wso2wsas"/>
-            <arg value="conf/client-truststore.jks"/>
-            <arg value="wso2wsas"/>
-            <classpath refid="classpath.libraries"/>
-        </java>
-    </target>
-
-    <target name="clean">
-       <delete dir="temp"/>
-    </target>
-
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
+  ~
+  ~ Licensed 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 name="project" default="build-all">
+
+    <property name="wso2wsas.home" value="../../"/>
+    <property name="carbon.home" value="${wso2wsas.home}"/>
+    <property name="wsas.lib" value="${wso2wsas.home}/lib"/>
+    <property name="repo.location" value="${wso2wsas.home}/repository"/>
+    <property name="temp.dir" value="temp"/>
+    <property name="classes" value="${temp.dir}/classes"/>
+    <property name="src" value="src"/>
+    <property name="gen.src" value="target/generated/src"/>
+    <property name="services" value="services"/>
+
+    <ant antfile="${wso2wsas.home}/bin/build.xml"/>    
+
+    <path id="axis2.class.path">
+        <pathelement path="${java.class.path}"/>
+        <fileset dir="${wso2wsas.home}">
+            <include name="repository/lib/*.jar"/>
+        </fileset>
+    </path>
+
+    <target name="init" depends="clean">
+        <mkdir dir="${temp.dir}"/>
+        <mkdir dir="${classes}"/>
+        <mkdir dir="${gen.src}"/>
+    </target>
+
+    <target name="clean">
+        <delete dir="${temp.dir}"/>
+        <delete dir="${gen.src}"/>
+    </target>
+
+    <target name="compile-all" depends="init">
+        <javac debug="on" destdir="${classes}">
+            <src path="${src}"/>
+            <src path="${gen.src}"/>
+            <classpath refid="axis2.class.path"/>
+        </javac>
+    </target>
+
+
+    <target name="build-all" depends="compile-all,keys">
+        <!-- Create a local repository containing only the necessary modules 
-->
+        <mkdir dir="repository/modules"/>
+        <copy todir="repository/modules">
+            <fileset dir="${repo.location}/modules">
+                <include name="**/*rampart*"/>
+                <include name="addressing*.mar"/>
+            </fileset>
+        </copy>
+
+    </target>    
+  
+    <target name="keys">
+        <java classname="org.wso2.carbon.utils.security.KeyImporter">
+            <arg value="${wso2wsas.home}/resources/security/wso2carbon.jks"/>
+            <arg value="wso2carbon"/>
+            <arg value="wso2carbon"/>
+            <arg value="conf/client-truststore.jks"/>
+            <arg value="wso2wsas"/>
+            <classpath refid="axis2.class.path"/>
+        </java>
+    </target>
+
+</project>

_______________________________________________
Wsas-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to