<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<!-- $Id: JaasAuthenticationProviderTests.xml 1109 2005-11-17 00:56:49Z benalex $  -->

<beans>

    <bean id="eventCheck" class="org.acegisecurity.providers.jaas.JaasEventCheck"/>

    <bean id="jaasAuthenticationProvider" class="org.acegisecurity.providers.jaas.JaasAuthenticationProvider">
        <property name="loginContextName">
            <value>JAASTest</value>
        </property>
        <property name="loginConfig">
            <value>classpath:org/acegisecurity/providers/jaas/login.conf</value>
        </property>
        <property name="callbackHandlers">
            <list>
                <bean class="org.acegisecurity.providers.jaas.TestCallbackHandler"/>
                <bean class="org.acegisecurity.providers.jaas.JaasNameCallbackHandler"/>
                <bean class="org.acegisecurity.providers.jaas.JaasPasswordCallbackHandler"/>
            </list>
        </property>
        <property name="authorityGranters">
            <list>
                <bean class="org.acegisecurity.providers.jaas.TestAuthorityGranter"/>
            </list>
        </property>
    </bean>
</beans>