Class AffirmativeBased

    • Constructor Detail

      • AffirmativeBased

        public AffirmativeBased​(java.util.List<AccessDecisionVoter<?>> decisionVoters)
        Deprecated.
    • Method Detail

      • decide

        public void decide​(Authentication authentication,
                           java.lang.Object object,
                           java.util.Collection<ConfigAttribute> configAttributes)
                    throws AccessDeniedException
        Deprecated.
        This concrete implementation simply polls all configured AccessDecisionVoters and grants access if any AccessDecisionVoter voted affirmatively. Denies access only if there was a deny vote AND no affirmative votes.

        If every AccessDecisionVoter abstained from voting, the decision will be based on the AbstractAccessDecisionManager.isAllowIfAllAbstainDecisions() property (defaults to false).

        Parameters:
        authentication - the caller invoking the method
        object - the secured object
        configAttributes - the configuration attributes associated with the method being invoked
        Throws:
        AccessDeniedException - if access is denied