Examples of WebInvocationPrivilegeEvaluator


Examples of org.springframework.security.web.access.WebInvocationPrivilegeEvaluator

        throw new IOException("No visible WebSecurityExpressionHandler instance could be found in the application "
                + "context. There must be at least one in order to support expressions in JSP 'authorize' tags.");
    }

    private WebInvocationPrivilegeEvaluator getPrivilegeEvaluator() throws IOException {
        WebInvocationPrivilegeEvaluator privEvaluatorFromRequest = (WebInvocationPrivilegeEvaluator) getRequest()
                .getAttribute(WebAttributes.WEB_INVOCATION_PRIVILEGE_EVALUATOR_ATTRIBUTE);
        if(privEvaluatorFromRequest != null) {
            return privEvaluatorFromRequest;
        }
View Full Code Here

Examples of org.springframework.security.web.access.WebInvocationPrivilegeEvaluator

    }

    @Test
    public void privilegeEvaluatorFromRequest() throws IOException {
        String uri = "/something";
        WebInvocationPrivilegeEvaluator expected = mock(WebInvocationPrivilegeEvaluator.class);
        tag.setUrl(uri);
        request.setAttribute(WebAttributes.WEB_INVOCATION_PRIVILEGE_EVALUATOR_ATTRIBUTE, expected);

        tag.authorizeUsingUrlCheck();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.