O'Reilly logo

Spring Security 3 by Peter Mularien

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic configuration of Spring Security ACL support

Although we hinted previously that configuring ACL support in Spring Security requires bean-based configuration (which it does), you can use ACL support while retaining the simpler security XML namespace configuration if you choose. If you're following along with the sample code, you'll need to switch web.xml to the security namespace configuration, using dogstore-base.xml and dogstore-security.xml.

Defining a simple target scenario

Our simple target scenario is to disallow read access to the first category on the JBCP Pets home page to any individual other than a user with ROLE_ADMIN GrantedAuthority assigned. The first category is called Pet Apparel—this is the category we'll be protecting with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required