Interface AccessDecisionManager
- 
- All Known Implementing Classes:
- AbstractAccessDecisionManager,- AffirmativeBased,- ConsensusBased,- UnanimousBased
 
 public interface AccessDecisionManagerMakes a final access control (authorization) decision.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecide(Authentication authentication, java.lang.Object object, java.util.Collection<ConfigAttribute> configAttributes)Resolves an access control decision for the passed parameters.booleansupports(java.lang.Class<?> clazz)Indicates whether theAccessDecisionManagerimplementation is able to provide access control decisions for the indicated secured object type.booleansupports(ConfigAttribute attribute)Indicates whether thisAccessDecisionManageris able to process authorization requests presented with the passedConfigAttribute.
 
- 
- 
- 
Method Detail- 
decidevoid decide(Authentication authentication, java.lang.Object object, java.util.Collection<ConfigAttribute> configAttributes) throws AccessDeniedException, InsufficientAuthenticationException Resolves an access control decision for the passed parameters.- Parameters:
- authentication- the caller invoking the method (not null)
- object- the secured object being called
- configAttributes- the configuration attributes associated with the secured object being invoked
- Throws:
- AccessDeniedException- if access is denied as the authentication does not hold a required authority or ACL privilege
- InsufficientAuthenticationException- if access is denied as the authentication does not provide a sufficient level of trust
 
 - 
supportsboolean supports(ConfigAttribute attribute) Indicates whether thisAccessDecisionManageris able to process authorization requests presented with the passedConfigAttribute.This allows the AbstractSecurityInterceptorto check every configuration attribute can be consumed by the configuredAccessDecisionManagerand/orRunAsManagerand/orAfterInvocationManager.- Parameters:
- attribute- a configuration attribute that has been configured against the- AbstractSecurityInterceptor
- Returns:
- true if this AccessDecisionManagercan support the passed configuration attribute
 
 - 
supportsboolean supports(java.lang.Class<?> clazz) Indicates whether theAccessDecisionManagerimplementation is able to provide access control decisions for the indicated secured object type.- Parameters:
- clazz- the class that is being queried
- Returns:
- trueif the implementation can process the indicated class
 
 
- 
 
-