SEC-1576: Parameterize the secured object type in AccessDecisionVoter.
This commit is contained in:
@@ -150,7 +150,7 @@ public class AbstractAccessDecisionManagerTests extends TestCase {
|
||||
}
|
||||
}
|
||||
|
||||
private class MockStringOnlyVoter implements AccessDecisionVoter {
|
||||
private class MockStringOnlyVoter implements AccessDecisionVoter<Object> {
|
||||
public boolean supports(Class<?> clazz) {
|
||||
return String.class.isAssignableFrom(clazz);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ public class AbstractAclVoterTests {
|
||||
public boolean supports(ConfigAttribute attribute) {
|
||||
return false;
|
||||
}
|
||||
public int vote(Authentication authentication, Object object, Collection<ConfigAttribute> attributes) {
|
||||
public int vote(Authentication authentication, MethodInvocation object, Collection<ConfigAttribute> attributes) {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ import java.util.Iterator;
|
||||
*
|
||||
* @author Ben Alex
|
||||
*/
|
||||
public class DenyAgainVoter implements AccessDecisionVoter {
|
||||
public class DenyAgainVoter implements AccessDecisionVoter<Object> {
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Iterator;
|
||||
*
|
||||
* @author Ben Alex
|
||||
*/
|
||||
public class DenyVoter implements AccessDecisionVoter {
|
||||
public class DenyVoter implements AccessDecisionVoter<Object> {
|
||||
//~ Methods ========================================================================================================
|
||||
|
||||
public boolean supports(ConfigAttribute attribute) {
|
||||
|
||||
Reference in New Issue
Block a user