Search in sources :

Example 1 with WebExpressionVoter

use of org.springframework.security.web.access.expression.WebExpressionVoter in project spring-security by spring-projects.

the class ExpressionUrlAuthorizationConfigurer method getDecisionVoters.

@Override
@SuppressWarnings("rawtypes")
final List<AccessDecisionVoter<? extends Object>> getDecisionVoters(H http) {
    List<AccessDecisionVoter<? extends Object>> decisionVoters = new ArrayList<AccessDecisionVoter<? extends Object>>();
    WebExpressionVoter expressionVoter = new WebExpressionVoter();
    expressionVoter.setExpressionHandler(getExpressionHandler(http));
    decisionVoters.add(expressionVoter);
    return decisionVoters;
}
Also used : ArrayList(java.util.ArrayList) AccessDecisionVoter(org.springframework.security.access.AccessDecisionVoter) WebExpressionVoter(org.springframework.security.web.access.expression.WebExpressionVoter)

Aggregations

ArrayList (java.util.ArrayList)1 AccessDecisionVoter (org.springframework.security.access.AccessDecisionVoter)1 WebExpressionVoter (org.springframework.security.web.access.expression.WebExpressionVoter)1