Browse Source

Converted test to use namespace to set method securityMetadataSource property.

Luke Taylor 15 years ago
parent
commit
6093dbce7e
1 changed files with 6 additions and 4 deletions
  1. 6 4
      itest/context/src/test/resources/sec-936-app-context.xml

+ 6 - 4
itest/context/src/test/resources/sec-936-app-context.xml

@@ -5,7 +5,7 @@
     xsi:schemaLocation="
     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
     http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd
-    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security.xsd">
+    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd">
 
     <security:authentication-manager alias="authenticationManager">
         <security:authentication-provider>
@@ -30,9 +30,11 @@
         <property name="rejectPublicInvocations" value="true"/>
         <property name="authenticationManager" ref="authenticationManager"/>
         <property name="accessDecisionManager" ref="accessDecisionManager"/>
-        <property name="securityMetadataSource"><value>
-            org.springframework.security.core.session.SessionRegistry.get*=ROLE_C
-        </value></property>
+        <property name="securityMetadataSource">
+            <security:method-security-metadata-source>
+                <security:protect method="org.springframework.security.core.session.SessionRegistry.get*" access="ROLE_C" />
+            </security:method-security-metadata-source>
+        </property>
     </bean>
 
     <bean id="httpRemoteService" class="org.springframework.aop.framework.ProxyFactoryBean">