Class MethodInvocationPrivilegeEvaluator
- java.lang.Object
-
- org.springframework.security.access.intercept.MethodInvocationPrivilegeEvaluator
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class MethodInvocationPrivilegeEvaluator extends java.lang.Object implements org.springframework.beans.factory.InitializingBeanAllows users to determine whether they have "before invocation" privileges for a given method invocation.Of course, if an
AfterInvocationManageris used to authorize the result of a method invocation, this class cannot assist determine whether or not theAfterInvocationManagerwill enable access. Instead this class aims to allow applications to determine whether or not the current principal would be allowed to at least attempt to invoke the method, irrespective of the "after" invocation handling.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Loglogger
-
Constructor Summary
Constructors Constructor Description MethodInvocationPrivilegeEvaluator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()booleanisAllowed(org.aopalliance.intercept.MethodInvocation invocation, Authentication authentication)voidsetSecurityInterceptor(AbstractSecurityInterceptor securityInterceptor)
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
isAllowed
public boolean isAllowed(org.aopalliance.intercept.MethodInvocation invocation, Authentication authentication)
-
setSecurityInterceptor
public void setSecurityInterceptor(AbstractSecurityInterceptor securityInterceptor)
-
-