|
@@ -14,11 +14,11 @@
|
|
<value>
|
|
<value>
|
|
sample.dms.secured.SecureDocumentDao.*=PROPAGATION_REQUIRED
|
|
sample.dms.secured.SecureDocumentDao.*=PROPAGATION_REQUIRED
|
|
sample.dms.DocumentDao.*=PROPAGATION_REQUIRED
|
|
sample.dms.DocumentDao.*=PROPAGATION_REQUIRED
|
|
- org.acegisecurity.acls.AclService.*=PROPAGATION_REQUIRED
|
|
|
|
- org.acegisecurity.acls.MutableAclService.*=PROPAGATION_REQUIRED
|
|
|
|
- org.acegisecurity.acls.jdbc.JdbcMutableAclService.*=PROPAGATION_REQUIRED
|
|
|
|
- org.acegisecurity.acls.jdbc.JdbcAclService.*=PROPAGATION_REQUIRED
|
|
|
|
- </value>
|
|
|
|
|
|
+ org.springframework.security.acls.AclService.*=PROPAGATION_REQUIRED
|
|
|
|
+ org.springframework.security.acls.MutableAclService.*=PROPAGATION_REQUIRED
|
|
|
|
+ org.springframework.security.acls.jdbc.JdbcMutableAclService.*=PROPAGATION_REQUIRED
|
|
|
|
+ org.springframework.security.acls.jdbc.JdbcAclService.*=PROPAGATION_REQUIRED
|
|
|
|
+ </value>
|
|
</property>
|
|
</property>
|
|
<property name="transactionManager" ref="transactionManager" />
|
|
<property name="transactionManager" ref="transactionManager" />
|
|
</bean>
|
|
</bean>
|
|
@@ -27,7 +27,7 @@
|
|
<constructor-arg ref="aclService"/>
|
|
<constructor-arg ref="aclService"/>
|
|
<property name="dataSource" ref="dataSource"/>
|
|
<property name="dataSource" ref="dataSource"/>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
|
|
+
|
|
<bean id="dataSourcePopulator" class="sample.dms.secured.SecureDataSourcePopulator">
|
|
<bean id="dataSourcePopulator" class="sample.dms.secured.SecureDataSourcePopulator">
|
|
<constructor-arg ref="dataSource"/>
|
|
<constructor-arg ref="dataSource"/>
|
|
<constructor-arg ref="documentDao"/>
|
|
<constructor-arg ref="documentDao"/>
|
|
@@ -39,7 +39,7 @@
|
|
|
|
|
|
<!-- ======================== AUTHENTICATION (note there is no UI and this is for integration tests only) ======================= -->
|
|
<!-- ======================== AUTHENTICATION (note there is no UI and this is for integration tests only) ======================= -->
|
|
|
|
|
|
- <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
|
|
|
|
|
|
+ <bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
|
|
<property name="providers">
|
|
<property name="providers">
|
|
<list>
|
|
<list>
|
|
<ref local="daoAuthenticationProvider"/>
|
|
<ref local="daoAuthenticationProvider"/>
|
|
@@ -49,72 +49,72 @@
|
|
</property>
|
|
</property>
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
- <bean id="jdbcDaoImpl" class="org.acegisecurity.userdetails.jdbc.JdbcDaoImpl">
|
|
|
|
|
|
+ <bean id="jdbcDaoImpl" class="org.springframework.security.userdetails.jdbc.JdbcDaoImpl">
|
|
<property name="dataSource" ref="dataSource"/>
|
|
<property name="dataSource" ref="dataSource"/>
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
- <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
|
|
|
|
|
|
+ <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider">
|
|
<property name="userDetailsService" ref="jdbcDaoImpl"/>
|
|
<property name="userDetailsService" ref="jdbcDaoImpl"/>
|
|
<property name="userCache" ref="userCache"/>
|
|
<property name="userCache" ref="userCache"/>
|
|
<property name="passwordEncoder">
|
|
<property name="passwordEncoder">
|
|
- <bean class="org.acegisecurity.providers.encoding.Md5PasswordEncoder"/>
|
|
|
|
|
|
+ <bean class="org.springframework.security.providers.encoding.Md5PasswordEncoder"/>
|
|
</property>
|
|
</property>
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
|
|
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
|
|
-
|
|
|
|
|
|
+
|
|
<bean id="userCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
|
|
<bean id="userCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
|
|
<property name="cacheManager" ref="cacheManager"/>
|
|
<property name="cacheManager" ref="cacheManager"/>
|
|
<property name="cacheName" value="userCache"/>
|
|
<property name="cacheName" value="userCache"/>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
- <bean id="userCache" class="org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache">
|
|
|
|
|
|
+
|
|
|
|
+ <bean id="userCache" class="org.springframework.security.providers.dao.cache.EhCacheBasedUserCache">
|
|
<property name="cache" ref="userCacheBackend"/>
|
|
<property name="cache" ref="userCacheBackend"/>
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
<!-- Automatically receives AuthenticationEvent messages -->
|
|
<!-- Automatically receives AuthenticationEvent messages -->
|
|
- <bean id="loggerListener" class="org.acegisecurity.event.authentication.LoggerListener"/>
|
|
|
|
|
|
+ <bean id="loggerListener" class="org.springframework.security.event.authentication.LoggerListener"/>
|
|
|
|
|
|
- <bean id="anonymousAuthenticationProvider" class="org.acegisecurity.providers.anonymous.AnonymousAuthenticationProvider">
|
|
|
|
|
|
+ <bean id="anonymousAuthenticationProvider" class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider">
|
|
<property name="key" value="foobar"/>
|
|
<property name="key" value="foobar"/>
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
- <bean id="httpSessionContextIntegrationFilter" class="org.acegisecurity.context.HttpSessionContextIntegrationFilter"/>
|
|
|
|
|
|
+ <bean id="httpSessionContextIntegrationFilter" class="org.springframework.security.context.HttpSessionContextIntegrationFilter"/>
|
|
|
|
|
|
- <bean id="rememberMeServices" class="org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices">
|
|
|
|
|
|
+ <bean id="rememberMeServices" class="org.springframework.security.ui.rememberme.TokenBasedRememberMeServices">
|
|
<property name="userDetailsService" ref="jdbcDaoImpl"/>
|
|
<property name="userDetailsService" ref="jdbcDaoImpl"/>
|
|
<property name="key" value="springRocks"/>
|
|
<property name="key" value="springRocks"/>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
- <bean id="rememberMeAuthenticationProvider" class="org.acegisecurity.providers.rememberme.RememberMeAuthenticationProvider">
|
|
|
|
|
|
+
|
|
|
|
+ <bean id="rememberMeAuthenticationProvider" class="org.springframework.security.providers.rememberme.RememberMeAuthenticationProvider">
|
|
<property name="key" value="springRocks"/>
|
|
<property name="key" value="springRocks"/>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- ========================= "BEFORE INVOCATION" AUTHORIZATION DEFINITIONS ============================== -->
|
|
<!-- ========================= "BEFORE INVOCATION" AUTHORIZATION DEFINITIONS ============================== -->
|
|
|
|
|
|
<!-- ACL permission masks used by this application -->
|
|
<!-- ACL permission masks used by this application -->
|
|
- <bean id="org.acegisecurity.acls.domain.BasePermission.ADMINISTRATION" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
|
|
|
|
- <property name="staticField"><value>org.acegisecurity.acls.domain.BasePermission.ADMINISTRATION</value></property>
|
|
|
|
|
|
+ <bean id="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
|
|
|
|
+ <property name="staticField"><value>org.springframework.security.acls.domain.BasePermission.ADMINISTRATION</value></property>
|
|
</bean>
|
|
</bean>
|
|
- <bean id="org.acegisecurity.acls.domain.BasePermission.READ" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
|
|
|
|
- <property name="staticField"><value>org.acegisecurity.acls.domain.BasePermission.READ</value></property>
|
|
|
|
|
|
+ <bean id="org.springframework.security.acls.domain.BasePermission.READ" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
|
|
|
|
+ <property name="staticField"><value>org.springframework.security.acls.domain.BasePermission.READ</value></property>
|
|
</bean>
|
|
</bean>
|
|
- <bean id="org.acegisecurity.acls.domain.BasePermission.WRITE" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
|
|
|
|
- <property name="staticField"><value>org.acegisecurity.acls.domain.BasePermission.WRITE</value></property>
|
|
|
|
|
|
+ <bean id="org.springframework.security.acls.domain.BasePermission.WRITE" class="org.springframework.beans.factory.config.FieldRetrievingFactoryBean">
|
|
|
|
+ <property name="staticField"><value>org.springframework.security.acls.domain.BasePermission.WRITE</value></property>
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
|
|
|
|
<!-- An access decision voter that reads ROLE_* configuration settings -->
|
|
<!-- An access decision voter that reads ROLE_* configuration settings -->
|
|
- <bean id="roleVoter" class="org.acegisecurity.vote.RoleVoter"/>
|
|
|
|
|
|
+ <bean id="roleVoter" class="org.springframework.security.vote.RoleVoter"/>
|
|
|
|
|
|
<!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE_PARENT configuration settings -->
|
|
<!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE_PARENT configuration settings -->
|
|
- <bean id="aclAbstractElementWriteParentVoter" class="org.acegisecurity.vote.AclEntryVoter">
|
|
|
|
|
|
+ <bean id="aclAbstractElementWriteParentVoter" class="org.springframework.security.vote.AclEntryVoter">
|
|
<constructor-arg ref="aclService"/>
|
|
<constructor-arg ref="aclService"/>
|
|
<constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE_PARENT"/>
|
|
<constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE_PARENT"/>
|
|
<constructor-arg>
|
|
<constructor-arg>
|
|
<list>
|
|
<list>
|
|
- <ref local="org.acegisecurity.acls.domain.BasePermission.ADMINISTRATION"/>
|
|
|
|
- <ref local="org.acegisecurity.acls.domain.BasePermission.WRITE"/>
|
|
|
|
|
|
+ <ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/>
|
|
|
|
+ <ref local="org.springframework.security.acls.domain.BasePermission.WRITE"/>
|
|
</list>
|
|
</list>
|
|
</constructor-arg>
|
|
</constructor-arg>
|
|
<property name="processDomainObjectClass"><value>sample.dms.AbstractElement</value></property>
|
|
<property name="processDomainObjectClass"><value>sample.dms.AbstractElement</value></property>
|
|
@@ -122,20 +122,20 @@
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
<!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE configuration settings -->
|
|
<!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE configuration settings -->
|
|
- <bean id="aclAbstractElementWriteVoter" class="org.acegisecurity.vote.AclEntryVoter">
|
|
|
|
|
|
+ <bean id="aclAbstractElementWriteVoter" class="org.springframework.security.vote.AclEntryVoter">
|
|
<constructor-arg ref="aclService"/>
|
|
<constructor-arg ref="aclService"/>
|
|
<constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE"/>
|
|
<constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE"/>
|
|
<constructor-arg>
|
|
<constructor-arg>
|
|
<list>
|
|
<list>
|
|
- <ref local="org.acegisecurity.acls.domain.BasePermission.ADMINISTRATION"/>
|
|
|
|
- <ref local="org.acegisecurity.acls.domain.BasePermission.WRITE"/>
|
|
|
|
|
|
+ <ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/>
|
|
|
|
+ <ref local="org.springframework.security.acls.domain.BasePermission.WRITE"/>
|
|
</list>
|
|
</list>
|
|
</constructor-arg>
|
|
</constructor-arg>
|
|
<property name="processDomainObjectClass"><value>sample.dms.AbstractElement</value></property>
|
|
<property name="processDomainObjectClass"><value>sample.dms.AbstractElement</value></property>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- An access decision manager used by the business objects -->
|
|
<!-- An access decision manager used by the business objects -->
|
|
- <bean id="businessAccessDecisionManager" class="org.acegisecurity.vote.AffirmativeBased">
|
|
|
|
|
|
+ <bean id="businessAccessDecisionManager" class="org.springframework.security.vote.AffirmativeBased">
|
|
<property name="allowIfAllAbstainDecisions" value="true"/>
|
|
<property name="allowIfAllAbstainDecisions" value="true"/>
|
|
<property name="decisionVoters">
|
|
<property name="decisionVoters">
|
|
<list>
|
|
<list>
|
|
@@ -148,7 +148,7 @@
|
|
|
|
|
|
<!-- ========= ACCESS CONTROL LIST LOOKUP MANAGER DEFINITIONS ========= -->
|
|
<!-- ========= ACCESS CONTROL LIST LOOKUP MANAGER DEFINITIONS ========= -->
|
|
|
|
|
|
- <bean id="aclCache" class="org.acegisecurity.acls.jdbc.EhCacheBasedAclCache">
|
|
|
|
|
|
+ <bean id="aclCache" class="org.springframework.security.acls.jdbc.EhCacheBasedAclCache">
|
|
<constructor-arg>
|
|
<constructor-arg>
|
|
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
|
|
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
|
|
<property name="cacheManager">
|
|
<property name="cacheManager">
|
|
@@ -158,33 +158,33 @@
|
|
</bean>
|
|
</bean>
|
|
</constructor-arg>
|
|
</constructor-arg>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
- <bean id="lookupStrategy" class="org.acegisecurity.acls.jdbc.BasicLookupStrategy">
|
|
|
|
|
|
+
|
|
|
|
+ <bean id="lookupStrategy" class="org.springframework.security.acls.jdbc.BasicLookupStrategy">
|
|
<constructor-arg ref="dataSource"/>
|
|
<constructor-arg ref="dataSource"/>
|
|
<constructor-arg ref="aclCache"/>
|
|
<constructor-arg ref="aclCache"/>
|
|
<constructor-arg ref="aclAuthorizationStrategy"/>
|
|
<constructor-arg ref="aclAuthorizationStrategy"/>
|
|
<constructor-arg>
|
|
<constructor-arg>
|
|
- <bean class="org.acegisecurity.acls.domain.ConsoleAuditLogger"/>
|
|
|
|
|
|
+ <bean class="org.springframework.security.acls.domain.ConsoleAuditLogger"/>
|
|
</constructor-arg>
|
|
</constructor-arg>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
- <bean id="aclAuthorizationStrategy" class="org.acegisecurity.acls.domain.AclAuthorizationStrategyImpl">
|
|
|
|
|
|
+
|
|
|
|
+ <bean id="aclAuthorizationStrategy" class="org.springframework.security.acls.domain.AclAuthorizationStrategyImpl">
|
|
<constructor-arg>
|
|
<constructor-arg>
|
|
<list>
|
|
<list>
|
|
- <bean class="org.acegisecurity.GrantedAuthorityImpl">
|
|
|
|
|
|
+ <bean class="org.springframework.security.GrantedAuthorityImpl">
|
|
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
|
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
|
</bean>
|
|
</bean>
|
|
- <bean class="org.acegisecurity.GrantedAuthorityImpl">
|
|
|
|
|
|
+ <bean class="org.springframework.security.GrantedAuthorityImpl">
|
|
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
|
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
|
</bean>
|
|
</bean>
|
|
- <bean class="org.acegisecurity.GrantedAuthorityImpl">
|
|
|
|
|
|
+ <bean class="org.springframework.security.GrantedAuthorityImpl">
|
|
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
|
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
|
</bean>
|
|
</bean>
|
|
</list>
|
|
</list>
|
|
</constructor-arg>
|
|
</constructor-arg>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
- <bean id="aclService" class="org.acegisecurity.acls.jdbc.JdbcMutableAclService">
|
|
|
|
|
|
+
|
|
|
|
+ <bean id="aclService" class="org.springframework.security.acls.jdbc.JdbcMutableAclService">
|
|
<constructor-arg ref="dataSource"/>
|
|
<constructor-arg ref="dataSource"/>
|
|
<constructor-arg ref="lookupStrategy"/>
|
|
<constructor-arg ref="lookupStrategy"/>
|
|
<constructor-arg ref="aclCache"/>
|
|
<constructor-arg ref="aclCache"/>
|
|
@@ -192,30 +192,30 @@
|
|
|
|
|
|
<!-- ============== "AFTER INTERCEPTION" AUTHORIZATION DEFINITIONS =========== -->
|
|
<!-- ============== "AFTER INTERCEPTION" AUTHORIZATION DEFINITIONS =========== -->
|
|
|
|
|
|
- <bean id="afterInvocationManager" class="org.acegisecurity.afterinvocation.AfterInvocationProviderManager">
|
|
|
|
|
|
+ <bean id="afterInvocationManager" class="org.springframework.security.afterinvocation.AfterInvocationProviderManager">
|
|
<property name="providers">
|
|
<property name="providers">
|
|
<list>
|
|
<list>
|
|
<ref local="afterAclCollectionRead"/>
|
|
<ref local="afterAclCollectionRead"/>
|
|
</list>
|
|
</list>
|
|
</property>
|
|
</property>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- Processes AFTER_ACL_COLLECTION_READ configuration settings -->
|
|
<!-- Processes AFTER_ACL_COLLECTION_READ configuration settings -->
|
|
- <bean id="afterAclCollectionRead" class="org.acegisecurity.afterinvocation.AclEntryAfterInvocationCollectionFilteringProvider">
|
|
|
|
|
|
+ <bean id="afterAclCollectionRead" class="org.springframework.security.afterinvocation.AclEntryAfterInvocationCollectionFilteringProvider">
|
|
<constructor-arg ref="aclService"/>
|
|
<constructor-arg ref="aclService"/>
|
|
<constructor-arg>
|
|
<constructor-arg>
|
|
<list>
|
|
<list>
|
|
- <ref local="org.acegisecurity.acls.domain.BasePermission.ADMINISTRATION"/>
|
|
|
|
- <ref local="org.acegisecurity.acls.domain.BasePermission.READ"/>
|
|
|
|
|
|
+ <ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/>
|
|
|
|
+ <ref local="org.springframework.security.acls.domain.BasePermission.READ"/>
|
|
</list>
|
|
</list>
|
|
</constructor-arg>
|
|
</constructor-arg>
|
|
</bean>
|
|
</bean>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- ================= METHOD INVOCATION AUTHORIZATION ==================== -->
|
|
<!-- ================= METHOD INVOCATION AUTHORIZATION ==================== -->
|
|
|
|
|
|
- <bean id="methodSecurityAdvisor" class="org.acegisecurity.intercept.method.aopalliance.MethodDefinitionSourceAdvisor" autowire="constructor"/>
|
|
|
|
-
|
|
|
|
- <bean id="methodSecurityInterceptor" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
|
|
|
|
|
|
+ <bean id="methodSecurityAdvisor" class="org.springframework.security.intercept.method.aopalliance.MethodDefinitionSourceAdvisor" autowire="constructor"/>
|
|
|
|
+
|
|
|
|
+ <bean id="methodSecurityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
|
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
|
<property name="accessDecisionManager"><ref local="businessAccessDecisionManager"/></property>
|
|
<property name="accessDecisionManager"><ref local="businessAccessDecisionManager"/></property>
|
|
<property name="afterInvocationManager"><ref local="afterInvocationManager"/></property>
|
|
<property name="afterInvocationManager"><ref local="afterInvocationManager"/></property>
|