1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
6 <bean id="cacheConfig" class="org.wamblee.io.ClassPathResource">
7 <constructor-arg><value>properties/test.org.wamblee.security.ehcache.xml</value></constructor-arg>
10 <bean id="userCache" class="org.wamblee.cache.EhCache">
11 <constructor-arg><ref local="cacheConfig"/></constructor-arg>
12 <constructor-arg><value>users</value></constructor-arg>
16 <bean id="passwordValidator"
17 class="org.wamblee.usermgt.RegexpNameValidator">
18 <constructor-arg><value>.{5,}</value></constructor-arg>
19 <constructor-arg><value>INVALID_PASSWORD</value></constructor-arg>
20 <constructor-arg><value>Password must have at least 5 characters</value></constructor-arg>
23 <bean id="passwordDigester"
24 class="org.wamblee.security.encryption.Md5HexMessageDigester">
27 <bean id="org.wamblee.usermgt.UserSet"
28 class="org.wamblee.usermgt.hibernate.HibernateUserSet">
29 <constructor-arg><ref local="userCache"/></constructor-arg>
30 <constructor-arg><ref local="passwordValidator"/></constructor-arg>
31 <constructor-arg><ref local="passwordDigester"/></constructor-arg>
33 <property name="sessionFactory"><ref bean="sessionFactory"/></property>
37 <bean id="org.wamblee.usermgt.GroupSet"
38 class="org.wamblee.usermgt.hibernate.HibernateGroupSet">
40 <property name="sessionFactory"><ref bean="sessionFactory"/></property>