All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.rules.webstudio.AlwaysGrantAccessDecisionManager Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.webstudio;

import java.util.Collection;

import org.springframework.security.access.AccessDecisionManager;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.core.Authentication;

public class AlwaysGrantAccessDecisionManager implements AccessDecisionManager {

    @Override
    public void decide(Authentication authentication, Object object, Collection configAttributes) {
        // Always grant access
    }

    @Override
    public boolean supports(ConfigAttribute attribute) {
        return true;
    }

    @Override
    public boolean supports(Class clazz) {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy