在本章中,我们将首先研究两种实现细粒度授权的方法——可能会影响应用程序页面部分的授权。接下来,我们将了解 Spring Security 通过方法注释和使用基于接口的代理来完成 AOP 来保护业务层的方法。然后,我们将回顾基于注释的安全性的一项有趣功能,该功能允许对数据集合进行基于角色的过滤。最后,我们将看看基于类的代理与基于接口的代理有何不同。
在本章的课程中,我们将涵盖以下主题:
- Configuring and experimenting with different methods of performing in-page authorization checks on content, given the security context of a user request
- Performing configuration and code annotation to make caller preauthorization a key part of our application's business-tier security
- Several alternative approaches to implement method-level security, and reviewing the pros and cons of each type
- Implementing data-based filters on collections and arrays using method-level annotations
- Implementing method-level security on our Spring MVC controllers to avoid configuring antMatcher() methods and <intercept-url> elements