<?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="policy-security-cert" rank="1">
        <jaas:module className="org.switchyard.security.login.CertificateLoginModule" flags="required">
            keyStoreLocation = ${karaf.home}/quickstarts/switchyard/demos/policy-security-cert/users.jks
            keyStorePassword = changeit
            rolesProperties = ${karaf.home}/quickstarts/switchyard/demos/policy-security-cert/roles.properties
        </jaas:module>
    </jaas:config>

</blueprint>
