From 9eae7b899c82e00e992ecac325ac76933c5ab1fa Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 17 Nov 2009 16:19:05 +0000 Subject: [PATCH] SEC-1284: Added proxy-target-class attribute to method security namespace --- .../springframework/security/config/spring-security-3.0.rnc | 6 ++++-- .../springframework/security/config/spring-security-3.0.xsd | 1 + .../GlobalMethodSecurityBeanDefinitionParserTests.java | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/src/main/resources/org/springframework/security/config/spring-security-3.0.rnc b/config/src/main/resources/org/springframework/security/config/spring-security-3.0.rnc index 81a508a6fc..3906994e73 100644 --- a/config/src/main/resources/org/springframework/security/config/spring-security-3.0.rnc +++ b/config/src/main/resources/org/springframework/security/config/spring-security-3.0.rnc @@ -206,7 +206,9 @@ global-method-security.attlist &= global-method-security.attlist &= ## Allows the advice "order" to be set for the method security interceptor. attribute order {xsd:token}? - +global-method-security.attlist &= + attribute proxy-target-class {boolean}? + after-invocation-provider = ## Allows addition of extra AfterInvocationProvider beans which should be called by the MethodSecurityInterceptor created by global-method-security. element after-invocation-provider {ref} @@ -325,7 +327,7 @@ logout.attlist &= logout.attlist &= ## Specifies whether a logout also causes HttpSession invalidation, which is generally desirable. If unspecified, defaults to true. attribute invalidate-session {boolean}? - + request-cache = ## Allow the RequestCache used for saving requests during the login process to be set element request-cache {ref} diff --git a/config/src/main/resources/org/springframework/security/config/spring-security-3.0.xsd b/config/src/main/resources/org/springframework/security/config/spring-security-3.0.xsd index 4fdab65576..e29e1ad191 100644 --- a/config/src/main/resources/org/springframework/security/config/spring-security-3.0.xsd +++ b/config/src/main/resources/org/springframework/security/config/spring-security-3.0.xsd @@ -538,6 +538,7 @@ Allows the advice "order" to be set for the method security interceptor. + diff --git a/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java b/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java index cc4b205f05..8099aa2ec9 100644 --- a/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java +++ b/config/src/test/java/org/springframework/security/config/method/GlobalMethodSecurityBeanDefinitionParserTests.java @@ -48,7 +48,7 @@ public class GlobalMethodSecurityBeanDefinitionParserTests { public void loadContext() { setContext( "" + - "" + + "" + " " + " " + "" + ConfigTestUtils.AUTH_PROVIDER_XML