public abstract class

AbstractAccessDecisionManager

extends Object
implements InitializingBean MessageSourceAware AccessDecisionManager
java.lang.Object
   ↳ org.springframework.security.access.vote.AbstractAccessDecisionManager
Known Direct Subclasses

Class Overview

Abstract implementation of AccessDecisionManager.

Handles configuration of a bean context defined list of AccessDecisionVoters and the access control behaviour if all voters abstain from voting (defaults to deny access).

Summary

Fields
protected final Log logger
protected MessageSourceAccessor messages
Protected Constructors
AbstractAccessDecisionManager()
AbstractAccessDecisionManager(List<AccessDecisionVoter> decisionVoters)
Public Methods
void afterPropertiesSet()
List<AccessDecisionVoter> getDecisionVoters()
boolean isAllowIfAllAbstainDecisions()
void setAllowIfAllAbstainDecisions(boolean allowIfAllAbstainDecisions)
void setDecisionVoters(List<AccessDecisionVoter> newList)
This method is deprecated. Use constructor
void setMessageSource(MessageSource messageSource)
boolean supports(Class<?> clazz)
Iterates through all AccessDecisionVoters and ensures each can support the presented class.
boolean supports(ConfigAttribute attribute)
Indicates whether this AccessDecisionManager is able to process authorization requests presented with the passed ConfigAttribute.
Protected Methods
final void checkAllowIfAllAbstainDecisions()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.factory.InitializingBean
From interface org.springframework.context.MessageSourceAware
From interface org.springframework.security.access.AccessDecisionManager

Fields

protected final Log logger

protected MessageSourceAccessor messages

Protected Constructors

protected AbstractAccessDecisionManager ()

protected AbstractAccessDecisionManager (List<AccessDecisionVoter> decisionVoters)

Public Methods

public void afterPropertiesSet ()

Throws
Exception

public List<AccessDecisionVoter> getDecisionVoters ()

public boolean isAllowIfAllAbstainDecisions ()

public void setAllowIfAllAbstainDecisions (boolean allowIfAllAbstainDecisions)

public void setDecisionVoters (List<AccessDecisionVoter> newList)

This method is deprecated.
Use constructor

public void setMessageSource (MessageSource messageSource)

public boolean supports (Class<?> clazz)

Iterates through all AccessDecisionVoters and ensures each can support the presented class.

If one or more voters cannot support the presented class, false is returned.

Parameters
clazz the type of secured object being presented
Returns
  • true if this type is supported

public boolean supports (ConfigAttribute attribute)

Indicates whether this AccessDecisionManager is able to process authorization requests presented with the passed ConfigAttribute.

This allows the AbstractSecurityInterceptor to check every configuration attribute can be consumed by the configured AccessDecisionManager and/or RunAsManager and/or AfterInvocationManager.

Parameters
attribute a configuration attribute that has been configured against the AbstractSecurityInterceptor
Returns
  • true if this AccessDecisionManager can support the passed configuration attribute

Protected Methods

protected final void checkAllowIfAllAbstainDecisions ()