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

OSGI-INF.blueprint.blueprint.xml Maven / Gradle / Ivy

<?xml version="1.0"?>
<!-- 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. -->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/blueprint/core" xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0" xmlns:ext="http://www.osgi.org/xmlns/blueprint-ext/v1.1.0" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd                         http://www.osgi.org/xmlns/blueprint-ext/v1.1.0 https://svn.apache.org/repos/asf/aries/tags/blueprint-0.3.1/blueprint-core/src/main/resources/org/apache/aries/blueprint/ext/blueprint-ext.xsd                           http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.0.0.xsd                         http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd                         http://cxf.apache.org/blueprint/core http://cxf.apache.org/schemas/blueprint/core.xsd ">
    <cm:property-placeholder persistent-id="org.apache.cxf.xkms" update-strategy="reload">
        <cm:default-properties>
            <cm:property name="xkms.enableXKRSS" value="true"/>
            <cm:property name="xkms.logExceptions" value="false"/>
            <cm:property name="xkms.certificate.repo" value="file"/>
            <cm:property name="xkms.file.storageDir" value="data/xkms/certificates"/>
            <cm:property name="xkms.enableRevocation" value="false"/>
        </cm:default-properties>
    </cm:property-placeholder>
    <service interface="org.apache.cxf.xkms.x509.repo.CertificateRepo" activation="eager">
    	<service-properties>
    		<entry key="name" value="file"/>
    	</service-properties>
    	<bean class="org.apache.cxf.xkms.x509.repo.file.FileCertificateRepo">
        	<argument value="${xkms.file.storageDir}"/>
	    </bean>
    </service>
    
    <bean id="certificateRepoFactory" class="org.apache.cxf.xkms.service.CertificateRepoProxyFactory" destroy-method="close">
    	<argument value="org.apache.cxf.xkms.x509.repo.CertificateRepo"/>
    	<argument value="(name=${xkms.certificate.repo})"/>
    	<argument ref="blueprintBundleContext"/>
    </bean>
    
    <bean id="certificateRepo" class="org.apache.cxf.xkms.service.CertificateRepoProxyFactory"
    	factory-ref="certificateRepoFactory" 
    	factory-method="create"/>

    <bean id="dateValidator" class="org.apache.cxf.xkms.x509.validator.DateValidator"/>
    <bean id="trustedAuthorityValidator" class="org.apache.cxf.xkms.x509.validator.TrustedAuthorityValidator">
        <argument ref="certificateRepo"/>
        <property name="enableRevocation" value="${xkms.enableRevocation}"/>
    </bean>
    <bean id="directTrustValidator" class="org.apache.cxf.xkms.x509.validator.DirectTrustValidator">
        <argument ref="certificateRepo"/>
    </bean>
    <bean id="x509Locator" class="org.apache.cxf.xkms.x509.handlers.X509Locator">
        <argument ref="certificateRepo"/>
    </bean>
    <bean id="x509Register" class="org.apache.cxf.xkms.x509.handlers.X509Register">
        <argument ref="certificateRepo"/>
    </bean>
    <bean id="xkmsService" class="org.apache.cxf.xkms.service.XKMSService">
        <property name="enableXKRSS" value="${xkms.enableXKRSS}"/>
        <property name="logExceptions" value="${xkms.logExceptions}"/>
        <property name="validators">
            <list>
                <ref component-id="dateValidator"/>
                <ref component-id="trustedAuthorityValidator"/>
                <ref component-id="directTrustValidator"/>
            </list>
        </property>
        <property name="locators">
            <list>
                <ref component-id="x509Locator"/>
            </list>
        </property>
        <property name="keyRegisterHandlers">
            <list>
                <ref component-id="x509Register"/>
            </list>
        </property>
    </bean>
    <bean id="additionalClasses" class="org.apache.cxf.xkms.model.extensions.AdditionalClassesFactory"/>
    <jaxws:endpoint xmlns:serviceNamespace="http://www.w3.org/2002/03/xkms#wsdl" id="XKMSServiceEndpoint" serviceName="serviceNamespace:XKMSService" endpointName="serviceNamespace:XKMSPort" implementor="#xkmsService" address="/XKMS">
        <jaxws:properties>
            <entry key="jaxb.additionalContextClasses">
                <bean class="java.lang.Object" factory-ref="additionalClasses" factory-method="create"/>
            </entry>
        </jaxws:properties>
    </jaxws:endpoint>
</blueprint>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy