1
0
mirror of synced 2026-08-04 09:17:02 +00:00

SEC-1392: Mark PermissionEvaluator and MethodSecurityExpressionHandler as AopInfrastructure beans to prevent them being advised and causing premature use of MethodSecurityMetadataSource before it is initialized properly.

This commit is contained in:
Luke Taylor
2010-02-06 15:42:01 +00:00
parent 984604b026
commit bd2fd3448b
4 changed files with 37 additions and 2 deletions
@@ -2,6 +2,7 @@ package org.springframework.security.access;
import java.io.Serializable;
import org.springframework.aop.framework.AopInfrastructureBean;
import org.springframework.security.core.Authentication;
/**
@@ -12,7 +13,7 @@ import org.springframework.security.core.Authentication;
* @author Luke Taylor
* @since 3.0
*/
public interface PermissionEvaluator {
public interface PermissionEvaluator extends AopInfrastructureBean {
/**
*
* @param authentication represents the user in question. Should not be null.
@@ -1,6 +1,7 @@
package org.springframework.security.access.expression.method;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.framework.AopInfrastructureBean;
import org.springframework.expression.EvaluationContext;
import org.springframework.expression.Expression;
import org.springframework.expression.ExpressionParser;
@@ -13,7 +14,7 @@ import org.springframework.security.core.Authentication;
* @author Luke Taylor
* @since 3.0
*/
public interface MethodSecurityExpressionHandler {
public interface MethodSecurityExpressionHandler extends AopInfrastructureBean {
/**
* @return an expression parser for the expressions used by the implementation.
*/