SEC-271: Revert Ordered and ApplicationContextAware usage at this time, due to release of 1.0..
This commit is contained in:
@@ -24,7 +24,6 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.acegisecurity.ui.AuthenticationEntryPoint;
|
||||
import org.springframework.core.Ordered;
|
||||
|
||||
|
||||
/**
|
||||
@@ -33,22 +32,13 @@ import org.springframework.core.Ordered;
|
||||
* @author Ben Alex
|
||||
* @version $Id$
|
||||
*/
|
||||
public class MockAuthenticationEntryPoint implements AuthenticationEntryPoint, Ordered {
|
||||
public class MockAuthenticationEntryPoint implements AuthenticationEntryPoint {
|
||||
//~ Instance fields ================================================================================================
|
||||
|
||||
private String url;
|
||||
private int order = Integer.MAX_VALUE; // ~ default
|
||||
|
||||
//~ Constructors ===================================================================================================
|
||||
|
||||
public int getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
||||
public void setOrder(int order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
public MockAuthenticationEntryPoint(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.acegisecurity.vote;
|
||||
import org.acegisecurity.Authentication;
|
||||
import org.acegisecurity.ConfigAttribute;
|
||||
import org.acegisecurity.ConfigAttributeDefinition;
|
||||
import org.springframework.core.Ordered;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
@@ -35,11 +34,7 @@ import java.util.Iterator;
|
||||
* @author Ben Alex
|
||||
* @version $Id$
|
||||
*/
|
||||
public class DenyAgainVoter implements AccessDecisionVoter, Ordered {
|
||||
public static int DEFAULT_ORDER = Ordered.LOWEST_PRECEDENCE;
|
||||
|
||||
private int order = DEFAULT_ORDER;
|
||||
|
||||
public class DenyAgainVoter implements AccessDecisionVoter {
|
||||
// ~ Methods
|
||||
// ========================================================================================================
|
||||
|
||||
@@ -70,12 +65,4 @@ public class DenyAgainVoter implements AccessDecisionVoter, Ordered {
|
||||
return ACCESS_ABSTAIN;
|
||||
}
|
||||
|
||||
public void setOrder(int order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
public int getOrder() {
|
||||
return order;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user