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

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

The newest version!
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
    xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
    xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">

  <cm:property-placeholder persistent-id="org.xipki.security" update-strategy="reload">
    <cm:default-properties>
      <cm:property name="key.strongrandom.enabled" value="false"/>
      <cm:property name="sign.strongrandom.enabled" value="false"/>
      <cm:property name="hostnameVerifier.enabled" value="false"/>
      <cm:property name="hostnameVerifier.trustAll" value="false"/>
      <cm:property name="hostnameVerifier.commonnameHostMap" value=""/>
      <cm:property name="defaultSignerParallelism" value="32"/>
      <cm:property name="pkcs11.confFile" value=""/>
    </cm:default-properties>
  </cm:property-placeholder>

  <reference id="passwordResolver" interface="org.xipki.password.PasswordResolver"/>
  
  <bean id="providers" class="org.xipki.security.Providers"
      init-method="init" destroy-method="shutdown"/>

  <bean id="p11CryptServiceFactory"
      class="org.xipki.security.pkcs11.P11CryptServiceFactoryImpl"
      init-method="init" destroy-method="shutdown">
    <property name="pkcs11ConfFile" value="${pkcs11.confFile}"/>
    <property name="passwordResolver" ref="passwordResolver"/>
  </bean>
  <service ref="p11CryptServiceFactory"
      interface="org.xipki.security.pkcs11.P11CryptServiceFactory"/>

  <bean id="signerFactoryRegister"
       class="org.xipki.security.SignerFactoryRegisterImpl">
    <property name="p11CryptServiceFactory" ref="p11CryptServiceFactory"/>
  </bean>

  <service ref="signerFactoryRegister"
       interface="org.xipki.security.SignerFactoryRegister"/>
  <reference-list id="signerFactories"
       interface="org.xipki.security.SignerFactory"
       availability="optional">
    <reference-listener ref="signerFactoryRegister" bind-method="bindService" 
         unbind-method="unbindService"/>
  </reference-list>

  <bean id="securityFactory" class="org.xipki.security.SecurityFactoryImpl">
    <property name="strongRandom4KeyEnabled" value="${key.strongrandom.enabled}"/>
    <property name="strongRandom4SignEnabled" value="${sign.strongrandom.enabled}"/>
    <property name="defaultSignerParallelism" value="${defaultSignerParallelism}"/>
    <property name="passwordResolver" ref="passwordResolver"/>
    <property name="signerFactoryRegister" ref="signerFactoryRegister"/>
  </bean>
  <service ref="securityFactory" interface="org.xipki.security.SecurityFactory"/>

  <bean id="httpHostnameVerifier" class="org.xipki.security.HttpsHostnameVerifier"
      init-method="init" destroy-method="shutdown">
    <property name="enabled" value="${hostnameVerifier.enabled}"/>
    <property name="trustAll" value="${hostnameVerifier.trustAll}"/>
    <property name="commonnameHostMap" value="${hostnameVerifier.commonnameHostMap}"/>
  </bean>

  <!-- provider XIPKI -->
  <bean id="XipkiProviderRegister"
      class="org.xipki.security.pkcs11.provider.XipkiProviderRegister"
      init-method="regist">
    <property name="p11CryptServiceFactory" ref="p11CryptServiceFactory"/>
  </bean>

</blueprint>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy