SEC-562: Repackaging core.
This commit is contained in:
@@ -8,4 +8,4 @@ log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d %p %c - %m%n
|
||||
|
||||
log4j.category.org.acegisecurity=DEBUG
|
||||
log4j.category.org.springframework.security=DEBUG
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
JAASTest2 {
|
||||
org.acegisecurity.providers.jaas.TestLoginModule required;
|
||||
};
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
|
||||
<!-- $Id$ -->
|
||||
|
||||
<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>
|
||||
@@ -1,3 +0,0 @@
|
||||
JAASTest {
|
||||
org.acegisecurity.providers.jaas.TestLoginModule required;
|
||||
};
|
||||
@@ -11,16 +11,16 @@
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="databaseSeeder" class="org.acegisecurity.acls.jdbc.DatabaseSeeder">
|
||||
<bean id="databaseSeeder" class="org.springframework.security.acls.jdbc.DatabaseSeeder">
|
||||
<constructor-arg ref="dataSource"/>
|
||||
<constructor-arg value="classpath:org/acegisecurity/acls/jdbc/testData.sql"/>
|
||||
<constructor-arg value="classpath:org/springframework/security/acls/jdbc/testData.sql"/>
|
||||
</bean>
|
||||
|
||||
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
||||
<property name="dataSource" ref="dataSource"/>
|
||||
</bean>
|
||||
|
||||
<bean id="aclCache" class="org.acegisecurity.acls.jdbc.EhCacheBasedAclCache">
|
||||
|
||||
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
||||
<property name="dataSource" ref="dataSource"/>
|
||||
</bean>
|
||||
|
||||
<bean id="aclCache" class="org.springframework.security.acls.jdbc.EhCacheBasedAclCache">
|
||||
<constructor-arg>
|
||||
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
|
||||
<property name="cacheManager">
|
||||
@@ -32,36 +32,36 @@
|
||||
</bean>
|
||||
</constructor-arg>
|
||||
</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="aclCache"/>
|
||||
<constructor-arg ref="aclAuthorizationStrategy"/>
|
||||
<constructor-arg>
|
||||
<bean class="org.acegisecurity.acls.domain.ConsoleAuditLogger"/>
|
||||
<constructor-arg ref="aclCache"/>
|
||||
<constructor-arg ref="aclAuthorizationStrategy"/>
|
||||
<constructor-arg>
|
||||
<bean class="org.springframework.security.acls.domain.ConsoleAuditLogger"/>
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
|
||||
<bean id="aclAuthorizationStrategy" class="org.acegisecurity.acls.domain.AclAuthorizationStrategyImpl">
|
||||
<constructor-arg>
|
||||
<list>
|
||||
<bean class="org.acegisecurity.GrantedAuthorityImpl">
|
||||
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
||||
</bean>
|
||||
<bean class="org.acegisecurity.GrantedAuthorityImpl">
|
||||
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
||||
</bean>
|
||||
<bean class="org.acegisecurity.GrantedAuthorityImpl">
|
||||
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
||||
</bean>
|
||||
</list>
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
|
||||
<bean id="aclService" class="org.acegisecurity.acls.jdbc.JdbcMutableAclService">
|
||||
|
||||
<bean id="aclAuthorizationStrategy" class="org.springframework.security.acls.domain.AclAuthorizationStrategyImpl">
|
||||
<constructor-arg>
|
||||
<list>
|
||||
<bean class="org.springframework.security.GrantedAuthorityImpl">
|
||||
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
||||
</bean>
|
||||
<bean class="org.springframework.security.GrantedAuthorityImpl">
|
||||
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
||||
</bean>
|
||||
<bean class="org.springframework.security.GrantedAuthorityImpl">
|
||||
<constructor-arg value="ROLE_ADMINISTRATOR"/>
|
||||
</bean>
|
||||
</list>
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
|
||||
<bean id="aclService" class="org.springframework.security.acls.jdbc.JdbcMutableAclService">
|
||||
<constructor-arg ref="dataSource"/>
|
||||
<constructor-arg ref="lookupStrategy"/>
|
||||
<constructor-arg ref="aclCache"/>
|
||||
<constructor-arg ref="lookupStrategy"/>
|
||||
<constructor-arg ref="aclCache"/>
|
||||
</bean>
|
||||
|
||||
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||
@@ -69,8 +69,8 @@
|
||||
<value>org.hsqldb.jdbcDriver</value>
|
||||
</property>
|
||||
<property name="url">
|
||||
<value>jdbc:hsqldb:mem:test</value>
|
||||
<!-- <value>jdbc:hsqldb:hsql://localhost/acl</value> -->
|
||||
<value>jdbc:hsqldb:mem:test</value>
|
||||
<!-- <value>jdbc:hsqldb:hsql://localhost/acl</value> -->
|
||||
</property>
|
||||
<property name="username">
|
||||
<value>sa</value>
|
||||
@@ -79,5 +79,5 @@
|
||||
<value></value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
</beans>
|
||||
@@ -21,17 +21,17 @@
|
||||
<beans>
|
||||
|
||||
<!-- Automatically receives AuthenticationEvent messages from DaoAuthenticationProvider -->
|
||||
<bean id="authenticationLoggerListener" class="org.acegisecurity.event.authentication.LoggerListener"/>
|
||||
<bean id="authenticationLoggerListener" class="org.springframework.security.event.authentication.LoggerListener"/>
|
||||
|
||||
<!-- Automatically receives AuthenticationEvent messages from AbstractSecurityInterceptor -->
|
||||
<bean id="secureObjectLoggerListener" class="org.acegisecurity.event.authorization.LoggerListener"/>
|
||||
<bean id="secureObjectLoggerListener" class="org.springframework.security.event.authorization.LoggerListener"/>
|
||||
|
||||
<!-- Setup a cache we can use in tests of the caching layer -->
|
||||
<bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
|
||||
<property name="configLocation">
|
||||
<value>classpath:/ehcache-failsafe.xml</value>
|
||||
</property>
|
||||
</bean>
|
||||
</bean>
|
||||
|
||||
<bean id="eHCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
|
||||
<property name="cacheManager">
|
||||
@@ -20,31 +20,31 @@
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="afterInvocation" class="org.acegisecurity.MockAfterInvocationManager"/>
|
||||
<bean id="authentication" class="org.acegisecurity.MockAuthenticationManager"/>
|
||||
<bean id="accessDecision" class="org.acegisecurity.MockAccessDecisionManager"/>
|
||||
<bean id="runAs" class="org.acegisecurity.MockRunAsManager"/>
|
||||
<bean id="afterInvocation" class="org.springframework.security.MockAfterInvocationManager"/>
|
||||
<bean id="authentication" class="org.springframework.security.MockAuthenticationManager"/>
|
||||
<bean id="accessDecision" class="org.springframework.security.MockAccessDecisionManager"/>
|
||||
<bean id="runAs" class="org.springframework.security.MockRunAsManager"/>
|
||||
|
||||
<bean id="secureObjectLoggerListener" class="org.acegisecurity.event.authorization.LoggerListener"/>
|
||||
<bean id="secureObjectLoggerListener" class="org.springframework.security.event.authorization.LoggerListener"/>
|
||||
|
||||
<bean id="securityInterceptor" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||
<bean id="securityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||
<property name="authenticationManager"><ref local="authentication"/></property>
|
||||
<property name="accessDecisionManager"><ref local="accessDecision"/></property>
|
||||
<property name="afterInvocationManager"><ref local="afterInvocation"/></property>
|
||||
<property name="runAsManager"><ref local="runAs"/></property>
|
||||
<property name="objectDefinitionSource">
|
||||
<value>
|
||||
org.acegisecurity.ITargetObject.makeLower*=MOCK_LOWER
|
||||
org.acegisecurity.ITargetObject.makeUpper*=MOCK_UPPER,RUN_AS
|
||||
org.acegisecurity.ITargetObject.computeHashCode*=MOCK_HASH,AFTER_INVOCATION_MOCK
|
||||
</value>
|
||||
org.springframework.security.ITargetObject.makeLower*=MOCK_LOWER
|
||||
org.springframework.security.ITargetObject.makeUpper*=MOCK_UPPER,RUN_AS
|
||||
org.springframework.security.ITargetObject.computeHashCode*=MOCK_HASH,AFTER_INVOCATION_MOCK
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="realTarget" class="org.acegisecurity.TargetObject"/>
|
||||
|
||||
<bean id="realTarget" class="org.springframework.security.TargetObject"/>
|
||||
|
||||
<bean id="target" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces"><value>org.acegisecurity.ITargetObject</value></property>
|
||||
<property name="proxyInterfaces"><value>org.springframework.security.ITargetObject</value></property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<idref local="securityInterceptor"/>
|
||||
@@ -20,16 +20,16 @@
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="authentication" class="org.acegisecurity.MockAuthenticationManager"/>
|
||||
<bean id="accessDecision" class="org.acegisecurity.MockAccessDecisionManager"/>
|
||||
<bean id="runAs" class="org.acegisecurity.MockRunAsManager"/>
|
||||
<bean id="attributes" class="org.acegisecurity.intercept.method.MockAttributes"/>
|
||||
<bean id="authentication" class="org.springframework.security.MockAuthenticationManager"/>
|
||||
<bean id="accessDecision" class="org.springframework.security.MockAccessDecisionManager"/>
|
||||
<bean id="runAs" class="org.springframework.security.MockRunAsManager"/>
|
||||
<bean id="attributes" class="org.springframework.security.intercept.method.MockAttributes"/>
|
||||
|
||||
<bean id="objectDefinitionSource" class="org.acegisecurity.intercept.method.MethodDefinitionAttributes">
|
||||
<bean id="objectDefinitionSource" class="org.springframework.security.intercept.method.MethodDefinitionAttributes">
|
||||
<property name="attributes"><ref local="attributes"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="securityInterceptor" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||
|
||||
<bean id="securityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||
<property name="authenticationManager"><ref local="authentication"/></property>
|
||||
<property name="accessDecisionManager"><ref local="accessDecision"/></property>
|
||||
<property name="runAsManager"><ref local="runAs"/></property>
|
||||
@@ -37,11 +37,11 @@
|
||||
<ref local="objectDefinitionSource"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="realTarget" class="org.acegisecurity.TargetObject"/>
|
||||
|
||||
<bean id="realTarget" class="org.springframework.security.TargetObject"/>
|
||||
|
||||
<bean id="target" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces"><value>org.acegisecurity.ITargetObject</value></property>
|
||||
<property name="proxyInterfaces"><value>org.springframework.security.ITargetObject</value></property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<idref local="securityInterceptor"/>
|
||||
@@ -50,6 +50,6 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="secureObjectLoggerListener" class="org.acegisecurity.event.authorization.LoggerListener"/>
|
||||
<bean id="secureObjectLoggerListener" class="org.springframework.security.event.authorization.LoggerListener"/>
|
||||
|
||||
</beans>
|
||||
@@ -19,11 +19,11 @@
|
||||
-->
|
||||
|
||||
<beans>
|
||||
<bean id="authentication" class="org.acegisecurity.MockAuthenticationManager"/>
|
||||
<bean id="accessDecision" class="org.acegisecurity.MockAccessDecisionManager"/>
|
||||
<bean id="runAs" class="org.acegisecurity.MockRunAsManager"/>
|
||||
<bean id="authentication" class="org.springframework.security.MockAuthenticationManager"/>
|
||||
<bean id="accessDecision" class="org.springframework.security.MockAccessDecisionManager"/>
|
||||
<bean id="runAs" class="org.springframework.security.MockRunAsManager"/>
|
||||
|
||||
<bean id="securityInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
|
||||
<bean id="securityInterceptor" class="org.springframework.security.intercept.web.FilterSecurityInterceptor">
|
||||
<property name="authenticationManager"><ref local="authentication"/></property>
|
||||
<property name="accessDecisionManager"><ref local="accessDecision"/></property>
|
||||
<property name="runAsManager"><ref local="runAs"/></property>
|
||||
@@ -50,7 +50,7 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="configEnvHelper" class="org.acegisecurity.ldap.ConfigEnvHelper">
|
||||
<bean id="configEnvHelper" class="org.springframework.security.ldap.ConfigEnvHelper">
|
||||
<constructor-arg ref="environment" />
|
||||
<constructor-arg ref="configuration" />
|
||||
</bean>
|
||||
@@ -64,7 +64,7 @@
|
||||
</constructor-arg>
|
||||
</bean>
|
||||
|
||||
<bean name="ldapServerManager" class="org.acegisecurity.ldap.LdapServerManager">
|
||||
<bean name="ldapServerManager" class="org.springframework.security.ldap.LdapServerManager">
|
||||
<property name="contextSource" ref="contextSource" />
|
||||
</bean>
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
|
||||
|
||||
<import resource="classpath:/org/acegisecurity/ldap/apacheDsContext.xml"/>
|
||||
<import resource="classpath:/org/springframework/security/ldap/apacheDsContext.xml"/>
|
||||
|
||||
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||
<property name="location" value="classpath:/org/acegisecurity/ldap/ldapserver.properties" />
|
||||
<property name="location" value="classpath:/org/springframework/security/ldap/ldapserver.properties" />
|
||||
</bean>
|
||||
<!--
|
||||
<bean id="contextSource" class="org.springframework.ldap.core.support.DirContextSource" >
|
||||
@@ -18,7 +18,7 @@
|
||||
<property name="dirObjectFactory" value="org.springframework.ldap.core.support.DefaultDirObjectFactory" />
|
||||
</bean>
|
||||
-->
|
||||
<bean id="contextSource" class="org.acegisecurity.ldap.DefaultInitialDirContextFactory" >
|
||||
<bean id="contextSource" class="org.springframework.security.ldap.DefaultInitialDirContextFactory" >
|
||||
<constructor-arg value="${fullUrl}"/>
|
||||
<property name="managerDn" value="${userDn}"/>
|
||||
<property name="managerPassword" value="${password}" />
|
||||
@@ -27,7 +27,7 @@
|
||||
</bean>
|
||||
|
||||
<!-- Here for refactoring, until we have a satisfactory context source implementation -->
|
||||
<bean id="initialDirContextFactory" class="org.acegisecurity.ldap.DefaultInitialDirContextFactory" >
|
||||
<bean id="initialDirContextFactory" class="org.springframework.security.ldap.DefaultInitialDirContextFactory" >
|
||||
<constructor-arg value="${fullUrl}"/>
|
||||
<property name="useLdapContext" value="true"/>
|
||||
<property name="dirObjectFactory" value="org.springframework.ldap.core.support.DefaultDirObjectFactory" />
|
||||
@@ -0,0 +1,3 @@
|
||||
JAASTest2 {
|
||||
org.springframework.security.providers.jaas.TestLoginModule required;
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||
|
||||
<!-- $Id$ -->
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="eventCheck" class="org.springframework.security.providers.jaas.JaasEventCheck"/>
|
||||
|
||||
<bean id="jaasAuthenticationProvider" class="org.springframework.security.providers.jaas.JaasAuthenticationProvider">
|
||||
<property name="loginContextName">
|
||||
<value>JAASTest</value>
|
||||
</property>
|
||||
<property name="loginConfig">
|
||||
<value>classpath:org/springframework/security/providers/jaas/login.conf</value>
|
||||
</property>
|
||||
<property name="callbackHandlers">
|
||||
<list>
|
||||
<bean class="org.springframework.security.providers.jaas.TestCallbackHandler"/>
|
||||
<bean class="org.springframework.security.providers.jaas.JaasNameCallbackHandler"/>
|
||||
<bean class="org.springframework.security.providers.jaas.JaasPasswordCallbackHandler"/>
|
||||
</list>
|
||||
</property>
|
||||
<property name="authorityGranters">
|
||||
<list>
|
||||
<bean class="org.springframework.security.providers.jaas.TestAuthorityGranter"/>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
||||
@@ -0,0 +1,3 @@
|
||||
JAASTest {
|
||||
org.springframework.security.providers.jaas.TestLoginModule required;
|
||||
};
|
||||
@@ -22,7 +22,7 @@
|
||||
<beans>
|
||||
|
||||
<!-- Data access object which stores authentication information -->
|
||||
<bean id="inMemoryDaoImpl" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
|
||||
<bean id="inMemoryDaoImpl" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
||||
<property name="userMap">
|
||||
<value>
|
||||
marissa=koala,ROLE_TELLER,ROLE_SUPERVISOR
|
||||
@@ -32,14 +32,14 @@
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<!-- Authentication provider that queries our data access object -->
|
||||
<bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
|
||||
<bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider">
|
||||
<property name="userDetailsService"><ref bean="inMemoryDaoImpl"/></property>
|
||||
</bean>
|
||||
|
||||
<!-- The authentication manager that iterates through our only authentication provider -->
|
||||
<bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
|
||||
<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
|
||||
<property name="providers">
|
||||
<list>
|
||||
<ref bean="daoAuthenticationProvider"/>
|
||||
@@ -47,7 +47,7 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="authenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
|
||||
<bean id="authenticationProcessingFilter" class="org.springframework.security.ui.webapp.AuthenticationProcessingFilter">
|
||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||
<property name="authenticationFailureUrl"><value>/failed.jsp</value></property>
|
||||
<property name="defaultTargetUrl"><value>/</value></property>
|
||||
@@ -21,13 +21,13 @@
|
||||
|
||||
<beans>
|
||||
|
||||
<bean id="mockFilter" class="org.acegisecurity.util.MockFilter"/>
|
||||
<bean id="mockFilter" class="org.springframework.security.util.MockFilter"/>
|
||||
|
||||
<bean id="mockFilter2" class="org.acegisecurity.util.MockFilter"/>
|
||||
<bean id="mockFilter2" class="org.springframework.security.util.MockFilter"/>
|
||||
|
||||
<bean id="mockNotAFilter" class="org.acegisecurity.util.MockNotAFilter"/>
|
||||
<bean id="mockNotAFilter" class="org.springframework.security.util.MockNotAFilter"/>
|
||||
|
||||
<bean id="filterChain" class="org.acegisecurity.util.FilterChainProxy">
|
||||
<bean id="filterChain" class="org.springframework.security.util.FilterChainProxy">
|
||||
<property name="filterInvocationDefinitionSource">
|
||||
<value>
|
||||
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd" >
|
||||
<beans>
|
||||
<bean id="userDetailsService" class="org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
|
||||
<bean id="userDetailsService" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl">
|
||||
<property name="userMap">
|
||||
<value>
|
||||
blueuser=password,ROLE_BASIC,LABEL_BLUE
|
||||
@@ -11,12 +11,12 @@
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenticationProvider">
|
||||
|
||||
<bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider">
|
||||
<property name="userDetailsService"><ref bean="userDetailsService"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
|
||||
</bean>
|
||||
|
||||
<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager">
|
||||
<property name="providers">
|
||||
<list>
|
||||
<ref local="daoAuthenticationProvider"/>
|
||||
@@ -24,12 +24,12 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="accessDecisionManager" class="org.acegisecurity.vote.UnanimousBased">
|
||||
<bean id="accessDecisionManager" class="org.springframework.security.vote.UnanimousBased">
|
||||
<property name="allowIfAllAbstainDecisions"><value>false</value></property>
|
||||
<property name="decisionVoters">
|
||||
<list>
|
||||
<bean class="org.acegisecurity.vote.RoleVoter"/>
|
||||
<bean class="org.acegisecurity.vote.LabelBasedAclVoter">
|
||||
<bean class="org.springframework.security.vote.RoleVoter"/>
|
||||
<bean class="org.springframework.security.vote.LabelBasedAclVoter">
|
||||
<property name="attributeIndicatingLabeledOperation"><value>LABELED_OPERATION</value></property>
|
||||
<property name="labelMap">
|
||||
<map>
|
||||
@@ -58,26 +58,26 @@
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<bean id="securityInteceptor"
|
||||
class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||
class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||
<property name="validateConfigAttributes"><value>false</value></property>
|
||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
|
||||
<property name="objectDefinitionSource">
|
||||
<value>
|
||||
org.acegisecurity.vote.SampleService.get*=ROLE_BASIC
|
||||
org.acegisecurity.vote.SampleService.do*=ROLE_BASIC,LABELED_OPERATION
|
||||
</value>
|
||||
org.springframework.security.vote.SampleService.get*=ROLE_BASIC
|
||||
org.springframework.security.vote.SampleService.do*=ROLE_BASIC,LABELED_OPERATION
|
||||
</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<bean id="perfOfSecurity" class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor">
|
||||
<property name="prefix"><value>Security: </value></property>
|
||||
</bean>
|
||||
|
||||
<bean id="sampleService" class="org.acegisecurity.vote.SampleServiceImpl"/>
|
||||
|
||||
|
||||
<bean id="sampleService" class="org.springframework.security.vote.SampleServiceImpl"/>
|
||||
|
||||
<bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
|
||||
<property name="beanNames"><value>sampleService</value></property>
|
||||
<property name="interceptorNames">
|
||||
Reference in New Issue
Block a user