From 78d13dc4cb589ad76a3eacb4f1c17436fd5a34a7 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sat, 12 Apr 2008 18:24:53 +0000 Subject: [PATCH] SEC-653: Added section on customizing AccessDecisionManager --- src/docbkx/namespace-config.xml | 60 +++++++++++++++++++++++++-------- 1 file changed, 46 insertions(+), 14 deletions(-) diff --git a/src/docbkx/namespace-config.xml b/src/docbkx/namespace-config.xml index c632b6f046..75838382fa 100644 --- a/src/docbkx/namespace-config.xml +++ b/src/docbkx/namespace-config.xml @@ -519,22 +519,54 @@ -
- Customizing the AccessDecisionManager - - The default namespace-registered AccessDecisionManager will be used automatically to - control method access. For more complex requirements you can specify another instance - using the access-decision-manager-ref attribute: - - - ... - -]]> - -
+
+ The Default AccessDecisionManager + + This section assumes you have some knowledge of the underlying architecture for access-control within + Spring Security. If you don't you can skip it and come back to it later, as this section is only really relevant for + people who need to do some customization in order to use more than simple role based security. + + + When you use a namespace configuration, a default instance of AccessDecisionManager + is automatically registered for you and will be used for making access decisions for method invocations + and web URL access, based on the access attributes you specify in your intercept-url and + protect-pointcut declarations (and in annotations if you are using annotation secured methods). + + + The default strategy is to use an AffirmativeBased AccessDecisionManager + with a RoleVoter and an AuthenticatedVoter. + + +
+ Customizing the AccessDecisionManager + + If you need to use a more complicated access control strategy then it is easy to set an alternative for both + method and web security. + + + For method security, you do this by setting the access-decision-manager-ref attribute + on global-securityto the Id of the appropriate + AccessDecisionManager bean in the application context: + + ... + + ]]> + + + The syntax for web security is the same, but on the http element: + + ... + + ]]> + + +
+ +
\ No newline at end of file