summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-10-03 13:57:36 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-10-03 13:57:36 +0000
commit0ab968700bd8200dd492edc7f8e9475b839ad3e0 (patch)
tree12095f2d74026c8442ea8bb485390b95e4d86c34 /java/sca
parent6c9c35b50c870120831b95c79d4865f7d3cd5312 (diff)
TUSCANY-2614 - Add missing license headers.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@701380 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/demos/bigbank-stockquote/src/main/resources/security.properties18
-rw-r--r--java/sca/demos/bigbank/src/main/resources/security.properties18
-rw-r--r--java/sca/itest/wsdl/src/main/resources/wsdl/Hello.xsd19
-rw-r--r--java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/security.properties16
-rw-r--r--java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/security.properties16
-rw-r--r--java/sca/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/package-info.java18
-rw-r--r--java/sca/samples/calculator-ws-secure-webapp/README24
-rw-r--r--java/sca/samples/calculator-ws-secure-webapp/src/main/resources/security.properties18
8 files changed, 135 insertions, 12 deletions
diff --git a/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties b/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
index 0063207e06..a5b889c269 100644
--- a/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
+++ b/java/sca/demos/bigbank-stockquote/src/main/resources/security.properties
@@ -1,4 +1,20 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
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
+org.apache.ws.security.crypto.merlin.file=stockQuote.jks
diff --git a/java/sca/demos/bigbank/src/main/resources/security.properties b/java/sca/demos/bigbank/src/main/resources/security.properties
index 762d0523d9..d1b489acbb 100644
--- a/java/sca/demos/bigbank/src/main/resources/security.properties
+++ b/java/sca/demos/bigbank/src/main/resources/security.properties
@@ -1,4 +1,20 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
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=bbakeystore
-org.apache.ws.security.crypto.merlin.file=bigbank.jks \ No newline at end of file
+org.apache.ws.security.crypto.merlin.file=bigbank.jks
diff --git a/java/sca/itest/wsdl/src/main/resources/wsdl/Hello.xsd b/java/sca/itest/wsdl/src/main/resources/wsdl/Hello.xsd
index 4fc5b10e7c..108b1f393f 100644
--- a/java/sca/itest/wsdl/src/main/resources/wsdl/Hello.xsd
+++ b/java/sca/itest/wsdl/src/main/resources/wsdl/Hello.xsd
@@ -1,4 +1,21 @@
-
+<!--
+ * 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.
+-->
<schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="getGreetings">
diff --git a/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/security.properties b/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/security.properties
index db221a4bea..592edf183b 100644
--- a/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/security.properties
+++ b/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/configparams/security.properties
@@ -1,3 +1,19 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
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=TuscanyWsUserPasswd
diff --git a/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/security.properties b/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/security.properties
index 8f9158a0f8..cb188e6676 100644
--- a/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/security.properties
+++ b/java/sca/modules/binding-ws-axis2/src/test/resources/org/apache/tuscany/sca/binding/ws/axis2/itests/policy/mixed/security.properties
@@ -1,3 +1,19 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
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=TuscanyWsUserPasswd
diff --git a/java/sca/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/package-info.java b/java/sca/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/package-info.java
index 5056760366..f10a2286e6 100644
--- a/java/sca/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/package-info.java
+++ b/java/sca/modules/binding-ws-wsdlgen/src/test/java/org/apache/tuscany/sca/binding/ws/other/package-info.java
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ */
@javax.xml.bind.annotation.XmlSchema(namespace = "http://other.ws.binding.sca.tuscany.apache.org/")
package org.apache.tuscany.sca.binding.ws.other;
diff --git a/java/sca/samples/calculator-ws-secure-webapp/README b/java/sca/samples/calculator-ws-secure-webapp/README
index a6e6c897e4..d0d3307b3a 100644
--- a/java/sca/samples/calculator-ws-secure-webapp/README
+++ b/java/sca/samples/calculator-ws-secure-webapp/README
@@ -1,7 +1,10 @@
-Calculator Sample Exposing Web Services In A WebApp
-===================================================
+Calculator Sample Exposing Secure Web Services In A WebApp
+==========================================================
This sample uses the same code as the calculator sample, it deploys the
sample wrapped in a web app and exposes the AddService as a web service.
+The autentication intent is applied to communications with the add
+component. The integrity intent is applied to communication with the
+subtract component.
The README in the samples directory (the directory above this) provides
general instructions about building and running samples. Take a look there
@@ -9,12 +12,12 @@ first.
As this sample provides a web app there is a manual step where the WAR file
that contains the sample is copied to your web app container. If you just want
-to give this sample a go deploy the WAR file (target/sample-calculator-ws-webapp.war)
+to give this sample a go deploy the WAR file (target/sample-calculator-ws-secure-webapp.war)
to you web application server.
Once the web app is deployed use your browser to visit the following URL;
-http://localhost:8080/sample-calculator-ws-webapp
+http://localhost:8080/sample-calculator-ws-secure-webapp
The sample is configured to use a service on port 8080. If your servlet container
is using a port other than 8080 then you will need to edit the Calculator.composite
@@ -48,6 +51,11 @@ calculator-webapp/
Calculator.composite - As calculator sample except that the
connection between the CalculatorService
and the AddService is web services
+ definitions.xml - intent and polci set specification
+ security.properties - security configuration for the
+ rampart security engine that runs
+ inside of Axis
+ calculatorKeys.jks - keystore
webapp
META-INF/
sca-contribution.xml - specifies the composite to be deployed
@@ -68,10 +76,10 @@ Building And Running The Sample Using Ant
With the binary distribution the sample can be built using Ant as
follows
-cd calculator-ws-webapp
+cd calculator-ws-secure-webapp
ant package
-This should result in a war file (sample-calculator-ws-webapp.war) in the target
+This should result in a war file (sample-calculator-ws-secure-webapp.war) in the target
directory. Copy this war file to your web app deployment directory in you
web app container.
@@ -81,7 +89,7 @@ of copying the WAR file to the webapps directory.
Once the web app is deployed use your browser to visit the following URL;
-http://localhost:8080/sample-calculator-ws-webapp
+http://localhost:8080/sample-calculator-ws-secure-webapp
The port and hostname will of course vary depending on your local installation.
@@ -98,7 +106,7 @@ Building And Running The Sample Using Maven
With either the binary or source distributions the sample can be built and run
using Maven as follows.
-cd calculator-ws-webapp
+cd calculator-ws-secure-webapp
mvn
Again this should result in a war file (sample-calculator-ws-webapp.war) in the target
diff --git a/java/sca/samples/calculator-ws-secure-webapp/src/main/resources/security.properties b/java/sca/samples/calculator-ws-secure-webapp/src/main/resources/security.properties
index a7a6f3aa9c..8ef9928018 100644
--- a/java/sca/samples/calculator-ws-secure-webapp/src/main/resources/security.properties
+++ b/java/sca/samples/calculator-ws-secure-webapp/src/main/resources/security.properties
@@ -1,4 +1,20 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
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=CalculatorAdmin
-org.apache.ws.security.crypto.merlin.file=calculatorKeys.jks \ No newline at end of file
+org.apache.ws.security.crypto.merlin.file=calculatorKeys.jks