<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<beans>

  <!-- ************** Security Providers ************** -->
  <!-- Security: Default Authentication Provider -->
  <bean id="org.apache.jetspeed.security.AuthenticationProvider" 
  	   class="org.apache.jetspeed.security.impl.AuthenticationProviderImpl"
  >  	   
  	   <constructor-arg index="0"><value>DefaultAuthenticator</value></constructor-arg>
  	   <constructor-arg index="1"><value>The default authenticator</value></constructor-arg>
  	   <constructor-arg index="2"><value>login.conf</value></constructor-arg>
  	   <constructor-arg index="3"><ref bean="org.apache.jetspeed.security.spi.CredentialHandler"/></constructor-arg>
  	   <constructor-arg index="4"><ref bean="org.apache.jetspeed.security.spi.UserSecurityHandler"/></constructor-arg>
  </bean>
  
  <!-- Security: Authentication Provider Proxy -->
  <bean id="org.apache.jetspeed.security.AuthenticationProviderProxy" 
  	   class="org.apache.jetspeed.security.impl.AuthenticationProviderProxyImpl"
  >  	   
  	   <constructor-arg >
  	   		<list>
  	   			<ref bean="org.apache.jetspeed.security.AuthenticationProvider"/>
  	   		</list>
  	   </constructor-arg>
  	   <constructor-arg ><value>DefaultAuthenticator</value></constructor-arg>
  </bean>
  
  <!-- Security: Security Provider -->
  <bean id="org.apache.jetspeed.security.SecurityProvider" 
  	   class="org.apache.jetspeed.security.impl.SecurityProviderImpl"
  >  	   
  	   <constructor-arg ><ref bean="org.apache.jetspeed.security.AuthenticationProviderProxy"/></constructor-arg>
  	   <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.RoleSecurityHandler"/></constructor-arg>
  	   <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.GroupSecurityHandler"/></constructor-arg>
  	   <constructor-arg ><ref bean="org.apache.jetspeed.security.spi.SecurityMappingHandler"/></constructor-arg>
  </bean>
  
  <!-- Security: Authorization Provider -->
  <bean id="org.apache.jetspeed.security.AuthorizationProvider" 
  	   class="org.apache.jetspeed.security.impl.AuthorizationProviderImpl"
  >  	   
  	   <constructor-arg index="0"><ref bean="org.apache.jetspeed.security.impl.RdbmsPolicy"/></constructor-arg>
  	   <!-- Does not use the default policy as a default behavior -->
  	   <constructor-arg index="1"><value>false</value></constructor-arg>   
  </bean>

</beans>
