|Constructor and Description|
|Modifier and Type||Method and Description|
afterPropertiesSet, checkAllowIfAllAbstainDecisions, getDecisionVoters, isAllowIfAllAbstainDecisions, setAllowIfAllAbstainDecisions, setMessageSource, supports, supports
public void decide(Authentication authentication, Object object, Collection<ConfigAttribute> attributes) throws AccessDeniedException
AccessDecisionVoters for each
ConfigAttributeand grants access if only grant (or abstain) votes were received.
Other voting implementations usually pass the entire list of ConfigAttributes to the
AccessDecisionVoter. This implementation differs in that each
knows only about a single
ConfigAttribute at a time.
AccessDecisionVoter abstained from voting, the decision will be based on the
AbstractAccessDecisionManager.isAllowIfAllAbstainDecisions() property (defaults to false).
authentication- the caller invoking the method
object- the secured object
attributes- the configuration attributes associated with the method being invoked
AccessDeniedException- if access is denied