Example usage for org.springframework.security.web.access WebInvocationPrivilegeEvaluator isAllowed

List of usage examples for org.springframework.security.web.access WebInvocationPrivilegeEvaluator isAllowed

Introduction

In this page you can find the example usage for org.springframework.security.web.access WebInvocationPrivilegeEvaluator isAllowed.

Prototype

public boolean isAllowed(String contextPath, String uri, String method, Authentication authentication);

Source Link

Document

Determines whether the user represented by the supplied Authentication object is allowed to invoke the supplied URI, with the given .

Usage

From source file:org.socialsignin.springsocial.security.signin.SpringSocialSecurityAccessDeniedHandler.java

private boolean providerCombinationAllowsAccessForEvaluator(HttpServletRequest request,
        Authentication existingAuthentication, WebInvocationPrivilegeEvaluator evaluator,
        Set<String> additionProviderIdsCombination) {
    return evaluator.isAllowed(request.getContextPath(), getUri(request), request.getMethod(),
            springSocialSecurityAuthenticationFactory.updateAuthenticationForNewProviders(
                    existingAuthentication, additionProviderIdsCombination));

}