Author: svkrish
Date: Mon Mar 10 11:05:08 2008
New Revision: 635622

URL: http://svn.apache.org/viewvc?rev=635622&view=rev
Log:
including ws security into stock quote service

Added:
    
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml
   (with props)
    
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
   (with props)
    
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/stockQuote.jks
   (with props)
Modified:
    incubator/tuscany/java/sca/demos/bigbank-stockquote/build.xml
    
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite

Modified: incubator/tuscany/java/sca/demos/bigbank-stockquote/build.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/build.xml?rev=635622&r1=635621&r2=635622&view=diff
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-stockquote/build.xml (original)
+++ incubator/tuscany/java/sca/demos/bigbank-stockquote/build.xml Mon Mar 10 
11:05:08 2008
@@ -57,5 +57,11 @@
         </java>        
     </target>  
 
+    <target name="clean">
+               <delete quiet="true" includeemptydirs="true">
+                       <fileset dir="target" />
+               </delete>
+       </target>
+
 </project>
 

Modified: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite?rev=635622&r1=635621&r2=635622&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite
 (original)
+++ 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite
 Mon Mar 10 11:05:08 2008
@@ -18,13 +18,14 @@
  * under the License.
 -->
 <composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
+       xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
        targetNamespace="http://stockquote";
        xmlns:hw="http://stockquote";
     name="StockQuote">
 
     <component name="StockQuoteServiceComponent">
         <implementation.java class="stockquote.StockQuoteImpl" />
-           <service name="StockQuoteService">
+           <service name="StockQuoteService" requires="integrity">
                <binding.ws 
uri="http://localhost:8081/services/StockQuoteWebService"/>
            </service>
     </component>

Added: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml?rev=635622&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml
 (added)
+++ 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml
 Mon Mar 10 11:05:08 2008
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.    
+-->
+<sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0";
+                       targetNamespace="http://stockQuote";
+                       xmlns:sca="http://www.osoa.org/xmlns/sca/1.0";
+                       xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0";
+                       xmlns:bb="http://bigbank";>
+
+ 
+ <!-- WS Security POLICY SETS -->
+ <sca:policySet name="wsIntegrityPolicy"
+       provides="integrity"
+       appliesTo="sca:binding.ws">
+       <tuscany:wsConfigParam>
+               <parameter name="InflowSecurity">
+                   <action>
+                       <items>Timestamp Signature</items>
+                       
<signaturePropFile>security.properties</signaturePropFile>
+                   </action>
+               </parameter>
+               <parameter name="OutflowSecurity">
+               <action>
+                       <items>Timestamp Signature</items>
+                       <user>sqservice</user>
+                       
<signaturePropFile>security.properties</signaturePropFile>
+                       
<passwordCallbackClass>stockquote.PasswordCallbackHandler</passwordCallbackClass>
+                       
<signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
+               </action>
+       </parameter>
+       </tuscany:wsConfigParam>
+ </sca:policySet>
+ </sca:definitions>
\ No newline at end of file

Propchange: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/definitions.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties?rev=635622&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
 (added)
+++ 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
 Mon Mar 10 11:05:08 2008
@@ -0,0 +1,4 @@
+org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
+org.apache.ws.security.crypto.merlin.keystore.type=jks
+org.apache.ws.security.crypto.merlin.keystore.password=sqkeystore
+org.apache.ws.security.crypto.merlin.file=stockQuote.jks
\ No newline at end of file

Propchange: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/stockQuote.jks
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/stockQuote.jks?rev=635622&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/stockQuote.jks
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to