<? xml version="1.0" encoding="UTF-8"? >
<!-- 
/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or any later version. 
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU Lesser General Public License for more details.  A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>. 
 *
 **/
-->
<blueprint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
           xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
        http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
        http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0
        http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd"
           default-activation="lazy">

    <reference id="securityLogger" interface="ddf.security.audit. SecurityLogger" />

    <bean class="org.codice.ddf.security.guest.realm. GuestRealm" id="guestRealm">
        <cm:managed-properties persistent-id="ddf.security.guest.realm"
                               update-strategy="container-managed"/>
        <!--  Default properties -->
        <property name="attributes">
            <array value-type="java.lang. String">
                <value>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier=guest</value>
                <value>http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role=guest</value>
            </array>
        </property>
        <property name="securityLogger" ref="securityLogger"/>
    </bean>

    <service ref="guestRealm" interface="org.apache.shiro.realm. Realm"/>

</blueprint>