Example usage for org.springframework.security.access AfterInvocationProvider decide

List of usage examples for org.springframework.security.access AfterInvocationProvider decide

Introduction

In this page you can find the example usage for org.springframework.security.access AfterInvocationProvider decide.

Prototype

Object decide(Authentication authentication, Object object, Collection<ConfigAttribute> attributes,
            Object returnedObject) throws AccessDeniedException;

Source Link

Usage

From source file:org.springframework.security.access.intercept.AfterInvocationProviderManager.java

public Object decide(Authentication authentication, Object object, Collection<ConfigAttribute> config,
        Object returnedObject) throws AccessDeniedException {

    Object result = returnedObject;

    for (AfterInvocationProvider provider : providers) {
        result = provider.decide(authentication, object, config, result);
    }/* ww  w  . ja  v a2 s  .co  m*/

    return result;
}