123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:security="http://www.springframework.org/schema/security"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
- http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
- <!-- http://www.springframework.org/schema/security file:/Users/vpuri/interface21/acegisecurity/trunk/acegisecurity/core/src/main/resources/org/acegisecurity/config/spring-security-2.0.xsd -->
- <!-- http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd" -->
- <security:authentication-repository id="authenticationRepository" repositoryBeanRef="refToUserDetailsService">
- <security:salt-source saltSourceBeanRef="refToSaltSource"/>
- <security:password-encoder encoderBeanRef="refToPasswordEncoder"/>
- </security:authentication-repository>
- <bean id="refToUserDetailsService"
- class="org.acegisecurity.userdetails.jdbc.JdbcDaoImpl">
- <property name="dataSource">
- <ref bean="dataSource" />
- </property>
- </bean>
- <bean id="dataSource"
- class="org.springframework.jdbc.datasource.DriverManagerDataSource">
- <property name="driverClassName">
- <value>org.hsqldb.jdbcDriver</value>
- </property>
- <property name="url">
- <value>jdbc:hsqldb:mem:test</value>
- <!-- <value>jdbc:hsqldb:hsql://localhost/acl</value> -->
- </property>
- <property name="username">
- <value>sa</value>
- </property>
- <property name="password">
- <value></value>
- </property>
- </bean>
-
- <bean id="refToSaltSource"
- class="org.acegisecurity.providers.dao.salt.SystemWideSaltSource">
- <property name="systemWideSalt">
- <value>12345</value>
- </property>
- </bean>
- <bean id="refToPasswordEncoder"
- class="org.acegisecurity.providers.encoding.Md5PasswordEncoder" />
-
- </beans>
|