Hi,
I'd like to configure an AOP Alliance (MethodInvocation) Security Interceptor as per section 22.1 of the reference guide.
(I realise that I can use the global-method-security element, but I need to customise the interception at a later stage.)
When I run this, I get:Code:<bean id="objectDefinitionSource" class="org.springframework.security.intercept.method.MethodDefinitionAttributes"> <property name="attributes"><ref local="attributes"/></property> </bean> <bean id="bankManagerSecurity" 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="runAsManager"><ref bean="runAsManager"/></property> <property name="objectDefinitionSource"><ref bean="objectDefinitionSource"/></property> </bean>
The class org.springframework.security.annotation.SecurityAn notationAttributes seems to have been removed from the codebase and the documentation has not been updated. There is an unresolved JIRA issue for this (http://jira.springframework.org/browse/SEC-800).Code:org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.security.annotation.Securit yAnnotationAttributes] for bean with name 'attributes' defined in ServletContext resource [/WEB-INF/applicationContext-security.xm l]; nested exception is java.lang.ClassNotFoundException: org.springframework.security.annotation.SecurityAnnotationAttributes Caused by: java.lang.ClassNotFoundException: org.springframework.security.annotation.SecurityAnnotationAttributes
Could someone please show me the correct way to configure a MethodSecurityInterceptor?
Thanks,
Justin


