1
0
mirror of synced 2026-05-22 21:33:16 +00:00

SEC-1576: Parameterize the secured object type in AccessDecisionVoter.

This commit is contained in:
Luke Taylor
2010-12-16 15:21:22 +00:00
parent 85d685f7d3
commit c8820166c8
13 changed files with 45 additions and 46 deletions
+1
View File
@@ -2,6 +2,7 @@
dependencies {
compile project(':spring-security-core'),
'aopalliance:aopalliance:1.0',
"net.sf.ehcache:ehcache:$ehcacheVersion",
"org.springframework:spring-aop:$springVersion",
"org.springframework:spring-context:$springVersion",
@@ -20,6 +20,7 @@ import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.aopalliance.intercept.MethodInvocation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.security.access.AuthorizationServiceException;
@@ -148,7 +149,7 @@ public class AclEntryVoter extends AbstractAclVoter {
return (attribute.getAttribute() != null) && attribute.getAttribute().equals(getProcessConfigAttribute());
}
public int vote(Authentication authentication, Object object, Collection<ConfigAttribute> attributes) {
public int vote(Authentication authentication, MethodInvocation object, Collection<ConfigAttribute> attributes) {
for(ConfigAttribute attr : attributes) {