source: TI12-security/trunk/java/axis2/archive/conf/axis2.xml @ 4253

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/java/axis2/archive/conf/axis2.xml@5064
Revision 4253, 11.6 KB checked in by pjkersha, 12 years ago (diff)

Updated Attribute Authority JUnit tests running against WSGI based Attribute Authority - working.
TODO: create a keystore based on the existing Python unit tests CA.

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 !
4 ! Copyright 2006 The Apache Software Foundation.
5 !
6 ! Licensed under the Apache License, Version 2.0 (the "License");
7 ! you may not use this file except in compliance with the License.
8 ! You may obtain a copy of the License at
9 !
10 !      http://www.apache.org/licenses/LICENSE-2.0
11 !
12 ! Unless required by applicable law or agreed to in writing, software
13 ! distributed under the License is distributed on an "AS IS" BASIS,
14 ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ! See the License for the specific language governing permissions and
16 ! limitations under the License.
17 !-->
18<axisconfig name="AxisJava2.0">
19
20        <module ref="rampart" />
21       
22        <parameter name="OutflowSecurity">
23      <action>
24        <items>Timestamp Signature</items>
25        <user>client</user>
26        <signaturePropFile>client.properties</signaturePropFile>
27        <passwordCallbackClass>ndg.security.wssecurity.PWCBHandler</passwordCallbackClass>
28        <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
29                <signatureParts>{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body;</signatureParts>
30      </action>
31    </parameter>
32
33    <parameter name="InflowSecurity">
34      <action>
35        <items>Signature Timestamp</items>
36        <signaturePropFile>client.properties</signaturePropFile>
37        <passwordCallbackClass>ndg.security.wssecurity.PWCBHandler</passwordCallbackClass>
38      </action>
39    </parameter>
40   
41    <!-- ================================================= -->
42    <!-- Parameters -->
43    <!-- ================================================= -->
44    <parameter name="hotdeployment" locked="false">true</parameter>
45    <parameter name="hotupdate" locked="false">false</parameter>
46    <parameter name="enableMTOM" locked="false">false</parameter>
47
48    <!--During a fault, stacktrace can be sent with the fault message. The following flag will control -->
49    <!--that behaviour.-->
50    <parameter name="sendStacktraceDetailsWithFaults" locked="false">true</parameter>
51
52    <!--If there aren't any information available to find out the fault reason, we set the message of the exception-->
53    <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be -->
54    <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag-->
55    <!--is set then, Axis2 tries to get the first exception and set its message as the faultreason/Reason.-->
56    <parameter name="DrillDownToRootCauseForFaultReason" locked="false">false</parameter>
57
58    <!--This is the user name and password of admin console-->
59    <parameter name="userName" locked="false">admin</parameter>
60    <parameter name="password" locked="false">axis2</parameter>
61
62    <!--To override repository/services you need to uncomment following parameter and value SHOULD be absolute file path.-->
63    <!--<parameter name="services" locked="false">service</parameter>-->
64    <!--To override repository/modules you need to uncomment following parameter and value SHOULD be absolute file path-->
65    <!--<parameter name="modules" locked="false">modules</parameter>-->
66
67    <!--Following params will set the proper context paths for invocations. All the endpoints will have a commons context-->
68    <!--root which can configured using the following contextRoot parameter-->
69    <!--<parameter name="contextRoot" locked="false">axis2</parameter>-->
70
71    <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distinguish those endpoints-->
72    <!--<parameter name="servicePath" locked="false">services</parameter>-->
73    <!--<parameter name="restPath" locked="false">rest</parameter>-->
74
75    <!--Set the flag to true if you want to enable transport level session management-->
76    <parameter name="manageTransportSession" locked="false">false</parameter>
77
78    <!--Following two parameters will be used to handle REST in Axis2. The default settings will make Axis2 to have two-->
79    <!--different endpoints, one for REST (AxisRESTServlet) one for SOAP message handling (AxisServlet). But following-->
80    <!--parameters help to tweak the message handling of two main servlets. -->
81
82    <!-- If the enableRESTInAxis2MainServlet is true, then Axis2MainServlet will handle both SOAP and REST messages -->
83    <parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>
84
85    <!-- Following parameter will completely disable REST handling in both the servlets-->
86    <parameter name="disableREST" locked="true">false</parameter>
87
88    <!-- This will disable the separate servlet we have for REST handling. -->
89    <parameter name="disableSeparateEndpointForREST" locked="true">false</parameter>
90
91
92
93    <!-- ================================================= -->
94    <!-- Message Receivers -->
95    <!-- ================================================= -->
96    <!--This is the Default Message Receiver for the system , if you want to have MessageReceivers for -->
97    <!--all the other MEP implement it and add the correct entry to here , so that you can refer from-->
98    <!--any operation -->
99    <!--Note : You can override this for particular service by adding the same element with your requirement-->
100    <messageReceivers>
101        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
102                         class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
103        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
104                         class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
105    </messageReceivers>
106
107    <!-- ================================================= -->
108    <!-- Target Resolvers -->
109    <!-- ================================================= -->
110    <!-- Uncomment the following and specify the class name for your TargetResolver to add -->
111    <!-- a TargetResolver. TargetResolvers are used to process the To EPR for example to -->
112    <!-- choose a server in a cluster -->
113    <!--<targetResolvers>-->
114    <!--<targetResolver class="" />-->
115    <!--</targetResolvers>-->
116
117
118    <!-- ================================================= -->
119    <!-- Transport Ins -->
120    <!-- ================================================= -->
121    <transportReceiver name="http"
122                       class="org.apache.axis2.transport.http.SimpleHTTPServer">
123        <parameter name="port" locked="false">6060</parameter>
124        <!--If you want to give your own host address for EPR generation-->
125        <!--uncomment following parameter , and set as you required.-->
126        <!--<parameter name="hostname" locked="false">http://myApp.com/ws</parameter>-->
127    </transportReceiver>
128
129    <transportReceiver name="tcp"
130                       class="org.apache.axis2.transport.tcp.TCPServer">
131        <parameter name="port" locked="false">6061</parameter>
132        <!--If you want to give your own host address for EPR generation-->
133        <!--uncomment following parameter , and set as you required.-->
134        <!--<parameter name="hostname" locked="false">tcp://myApp.com/ws</parameter>-->
135    </transportReceiver>
136
137    <!-- ================================================= -->
138    <!-- Transport Outs -->
139    <!-- ================================================= -->
140
141    <transportSender name="jms"
142                     class="org.apache.axis2.transport.jms.JMSSender"/>
143    <transportSender name="tcp"
144                     class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
145    <transportSender name="local"
146                     class="org.apache.axis2.transport.local.LocalTransportSender"/>
147    <transportSender name="http"
148                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
149        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
150        <!--
151        <parameter name="Transfer-Encoding" locked="false">chunked</parameter>
152                -->
153    </transportSender>
154    <transportSender name="https"
155                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
156        <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
157        <parameter name="Transfer-Encoding" locked="false">chunked</parameter>
158    </transportSender>
159
160    <!-- ================================================= -->
161    <!-- Phases  -->
162    <!-- ================================================= -->
163    <phaseOrder type="InFlow">
164        <!--  System pre-defined phases       -->
165         <phase name="Transport">
166            <handler name="RequestURIBasedDispatcher"
167                     class="org.apache.axis2.engine.RequestURIBasedDispatcher">
168                <order phase="Transport"/>
169            </handler>
170            <handler name="SOAPActionBasedDispatcher"
171                     class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
172                <order phase="Transport"/>
173            </handler>
174        </phase>
175        <phase name="Security"/>
176        <phase name="PreDispatch"/>
177        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
178            <handler name="AddressingBasedDispatcher"
179                     class="org.apache.axis2.engine.AddressingBasedDispatcher">
180                <order phase="Dispatch"/>
181            </handler>
182
183            <handler name="SOAPMessageBodyBasedDispatcher"
184                     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
185                <order phase="Dispatch"/>
186            </handler>
187            <handler name="InstanceDispatcher"
188                     class="org.apache.axis2.engine.InstanceDispatcher">
189                <order phase="Dispatch"/>
190            </handler>
191        </phase>
192        <!--  System pre defined phases       -->
193        <!--   After Postdispatch phase module author or or service author can add any phase he want      -->
194        <phase name="OperationInPhase"/>
195    </phaseOrder>
196    <phaseOrder type="OutFlow">
197        <!--      user can add his own phases to this area  -->
198        <phase name="OperationOutPhase"/>
199        <!--system predefined phase-->
200        <!--these phase will run irrespective of the service-->
201        <phase name="PolicyDetermination"/>
202        <phase name="MessageOut"/>
203        <phase name="Security"/>
204    </phaseOrder>
205    <phaseOrder type="InFaultFlow">
206        <phase name="PreDispatch"/>
207        <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
208            <handler name="RequestURIBasedDispatcher"
209                     class="org.apache.axis2.engine.RequestURIBasedDispatcher">
210                <order phase="Dispatch"/>
211            </handler>
212
213            <handler name="SOAPActionBasedDispatcher"
214                     class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
215                <order phase="Dispatch"/>
216            </handler>
217
218            <handler name="AddressingBasedDispatcher"
219                     class="org.apache.axis2.engine.AddressingBasedDispatcher">
220                <order phase="Dispatch"/>
221            </handler>
222
223            <handler name="SOAPMessageBodyBasedDispatcher"
224                     class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
225                <order phase="Dispatch"/>
226            </handler>
227            <handler name="InstanceDispatcher"
228                     class="org.apache.axis2.engine.InstanceDispatcher">
229                <order phase="Dispatch"/>
230            </handler>
231        </phase>
232        <!--      user can add his own phases to this area  -->
233        <phase name="OperationInFaultPhase"/>
234    </phaseOrder>
235    <phaseOrder type="OutFaultFlow">
236        <!--      user can add his own phases to this area  -->
237        <phase name="OperationOutFaultPhase"/>
238        <phase name="PolicyDetermination"/>
239        <phase name="MessageOut"/>
240    </phaseOrder>
241</axisconfig>
Note: See TracBrowser for help on using the repository browser.