<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.1.0"
           xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">

    <type-converters>
        <bean class="org.apache.karaf.jaas.modules.properties.PropertiesConverter"/>
    </type-converters>

    <ext:property-placeholder placeholder-prefix="${" placeholder-suffix="}"/>

    <jaas:config name="netty-security-cert" rank="1">
        <jaas:module className="org.switchyard.security.login.CertificateLoginModule" flags="required">
            keyStoreLocation = ${karaf.home}/quickstarts/switchyard/camel-netty-binding/users.jks
            keyStorePassword = changeit
            rolesProperties = ${karaf.home}/quickstarts/switchyard/camel-netty-binding/roles.properties
        </jaas:module>
    </jaas:config>

</blueprint>
