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

Advanced method security

Method security expressiveness doesn't stop at simple role checking. In fact, some method security annotations can utilize the full power of the Spring Expression Language (SpEL) that we first saw in Chapter 2 with the discussion about authorization rules in URL interceptors. This means that arbitrary expressions, with calculation, Boolean logic, and so on can be used.

Method security rules using bean decorators

An alternative form for declaring method security rules involves the use of declarative XML, which can be included within a Spring Bean definition. Although easier to read, this form of method security is far less expressive than pointcuts, and far less comprehensive than the annotation-based approaches that we've ...

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