All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.spring.cxf-endpoints.xml Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Unless explicitly acquired and licensed from Licensor under another license, the contents of
    this file are subject to the Reciprocal Public License ("RPL") Version 1.5, or subsequent
    versions as allowed by the RPL, and You may not copy or use this file in either source code
    or executable form, except in compliance with the terms and conditions of the RPL

    All software distributed under the RPL is provided strictly on an "AS IS" basis, WITHOUT
    WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND LICENSOR HEREBY DISCLAIMS ALL SUCH
    WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
    PARTICULAR PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the RPL for specific language
    governing rights and limitations under the RPL.

    http://opensource.org/licenses/RPL-1.5

    Copyright 2012-2015 Open Justice Broker Consortium

-->

<!-- Configures the CXF beans-->

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:cxf="http://camel.apache.org/schema/cxf" 
	xmlns:util="http://www.springframework.org/schema/util"
	xmlns:sec="http://cxf.apache.org/configuration/security" 
	xmlns:http="http://cxf.apache.org/transports/http/configuration"
	xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
	xmlns:policy="http://cxf.apache.org/policy" 
	xmlns:camel="http://camel.apache.org/schema/spring"
	xmlns:wsp="http://www.w3.org/2006/07/ws-policy"
	xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
       http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
       http://cxf.apache.org/configuration/security	http://cxf.apache.org/schemas/configuration/security.xsd
       http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
       http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http-jetty.xsd
       http://cxf.apache.org/policy http://cxf.apache.org/schemas/policy.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
       http://www.w3.org/2006/07/ws-policy http://www.w3.org/2006/07/ws-policy.xsd
       ">
       
	<!-- OJB Identification Request Reporting Service, hosted by this intermediary -->
	<cxf:cxfEndpoint id="IdentificationReportingService"
		address="${identificationReportingService.identificationReportingServiceEndpoint}"
		wsdlURL="classpath:ssp/Identification_Reporting/schemas/SIP_WS_1.3/Identification_Reporting_Service.wsdl"
		serviceName="ojbc:Identification-Reporting-ServiceService" endpointName="ojbc:Identification-Reporting-Secure-Service"
		xmlns:ojbc="http://ojbc.org/Services/WSDL/IdentificationReportingService/1.0">
 		<cxf:properties>
         	<entry key="mtom-enabled" value="true"/>			
			<entry key="dataFormat" value="PAYLOAD"/>
			<entry key="ws-security.callback-handler" value-ref="passwordCallbackHandler" />
			<entry key="ws-security.signature.properties" value-ref="identificationReportingKeystoreProperties" />
			<entry key="ws-security.signature.username" value="${identificationReportingService.intermediarykeystoreCertificateAlias}" />
		</cxf:properties> 
	</cxf:cxfEndpoint>

	<!-- Identification Recording Service, called by this intermediary -->
	<cxf:cxfEndpoint id="IdentificationRecordingService"
		address="${identificationReportingService.identificationRecordingServiceEndpoint}"
		wsdlURL="classpath:ssp/Identification_Recording/schemas/SIP_WS_1.3/Identification_Recording_Service.wsdl"
		serviceName="ojbc:Identification-Recording-ServiceService" endpointName="ojbc:Identification-Recording-Secure-Service"
		xmlns:ojbc="http://ojbc.org/Services/WSDL/IdentificationRecordingService/1.0">
 		<cxf:properties>
         	<entry key="mtom-enabled" value="true"/>
         	<entry key="dataFormat" value="PAYLOAD"/>			
			<entry key="ws-security.callback-handler" value-ref="passwordCallbackHandler" />
			<entry key="ws-security.signature.properties" value-ref="identificationReportingKeystoreProperties" />
			<entry key="ws-security.signature.username" value="${identificationReportingService.intermediarykeystoreCertificateAlias}" />
		</cxf:properties>
	</cxf:cxfEndpoint> 
	             
	<cxf:cxfEndpoint id="arrestReportingService"
		address="${identificationReportingService.arrestReportingServiceEndpoint}"
		wsdlURL="classpath:ssp/Arrest_Reporting/schema/RS_WS-SIP_v1.2/Arrest_Reporting_Service.wsdl"
		serviceName="ojbc:Arrest-Reporting-ServiceService"  
		endpointName="ojbc:Arrest-Reporting-Service" 
		xmlns:ojbc="http://ojbc.org/Services/WSDL/ArrestReportingService/1.0">
		<cxf:properties>
			<entry key="mtom-enabled" value="true" />
			<entry key="dataFormat" value="PAYLOAD" />
		</cxf:properties>
		<cxf:features>
			<policy:policies>
				<wsp:Policy xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
					<wsam:Addressing>
						<wsp:Policy />
					</wsam:Addressing>
				</wsp:Policy>
			</policy:policies>
		</cxf:features>	 
	</cxf:cxfEndpoint>
	
	<!-- Identification Response Handler - hosted by the intermediary, called by the rapback data store adapter -->
	<cxf:cxfEndpoint id="identificationReportingResponseService"
		address="${identificationReportingService.identificationReportingResponseServiceEndpoint}"
		wsdlURL="classpath:ssp/Identification_Reporting_Response/schemas/SIP_WS_1.3/Identification_Reporting_Response_Service.wsdl"
		serviceName="ojbc:Identification-Reporting-Response-ServiceService"
		endpointName="ojbc:Identification-Reporting-Response-Secure-Service"
		xmlns:ojbc="http://ojbc.org/Services/WSDL/IdentificationReportingResponseService/1.0">
		<cxf:features>
			<policy:policies>
				<wsp:Policy xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
					<wsam:Addressing>
						<wsp:Policy />
					</wsam:Addressing>
				</wsp:Policy>
			</policy:policies>
		</cxf:features>
	</cxf:cxfEndpoint>

	<!-- External Response Recipient - hosted by the external webservice, called by the intermediary -->
	<cxf:cxfEndpoint id="identificationReportingResponseRecipient"
		address="${identificationReportingService.responseRecipientServiceEndpoint}"
		wsdlURL="${identificationReportingService.responseRecipientServiceWsdlLocation}"
		serviceName="ojbc:Identification-Reporting-Response-ServiceService"
		endpointName="ojbc:Identification-Reporting-Response-Secure-Service"
		xmlns:ojbc="http://ojbc.org/Services/WSDL/IdentificationReportingResponseService/1.0">
		<cxf:features>
			<policy:policies>
				<wsp:Policy xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
					<wsam:Addressing>
						<wsp:Policy />
					</wsam:Addressing>
				</wsp:Policy>
			</policy:policies>
		</cxf:features>
	</cxf:cxfEndpoint>
	<!-- Conduit for http clients -->
	<http:conduit
		name="*.http-conduit">
		<http:tlsClientParameters disableCNCheck="true">
			<sec:trustManagers>
				<sec:keyStore type="JKS"
					password="${identificationReportingService.truststorePassword}"
					file="${identificationReportingService.truststoreLocation}" />
			</sec:trustManagers>
			<sec:cipherSuitesFilter>
				    <sec:include>TLS_DHE_RSA_WITH_AES_128_CBC_SHA</sec:include>
				    <sec:include>SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA</sec:include>
				    <sec:include>TLS_RSA_WITH_AES_128_CBC_SHA</sec:include>
				    <sec:include>SSL_RSA_WITH_3DES_EDE_CBC_SHA</sec:include>
			</sec:cipherSuitesFilter>
		</http:tlsClientParameters>
		<http:client AutoRedirect="true" Connection="Keep-Alive" />
	</http:conduit>

	<bean id="passwordCallbackHandler" class="org.ojbc.util.ws.security.ClientCallbackMap">
	    <property name="passwords">
            <map>
                <entry key="${identificationReportingService.intermediarykeystoreCertificateAlias}" value="${identificationReportingService.intermediaryKeyPassword}"/>
            </map>
        </property>
	</bean>

	<!-- Define a Properties object with the properties required by the org.apache.ws.security.components.crypto.Merlin 
		WSS4j Crypto implementation. This crypto config is used for signature creation 
		and validation. -->
	<util:properties id="identificationReportingKeystoreProperties">
		<!-- Defines the implementation class. -->
		<prop key="org.apache.ws.security.crypto.provider">org.apache.ws.security.components.crypto.Merlin</prop>
		<!-- The type of the keystore pointed to by org.apache.ws.security.crypto.merlin.file. -->
		<prop key="org.apache.ws.security.crypto.merlin.keystore.type">jks</prop>
		<!-- The password for the keystore file. -->
		<prop key="org.apache.ws.security.crypto.merlin.keystore.password">${identificationReportingService.intermediaryKeystorePassword}
		</prop>
		<!-- The password for the keystore file. -->
		<prop key="org.apache.ws.security.crypto.merlin.file">${identificationReportingService.intermediaryKeystoreLocation}
		</prop>
	</util:properties>


</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy