Which Spring Security component is responsible for restricting access to application resources based on user roles?
- AuthenticationManager
- AccessDecisionManager
- SecurityInterceptor
- AuthorizationManager
The AccessDecisionManager is responsible for restricting access to application resources based on user roles in Spring Security. It evaluates user roles and permissions against the requested resource and decides whether access should be granted or denied. The other options play different roles in the Spring Security framework but are not primarily responsible for role-based access control.
Loading...
Related Quiz
- The _____ annotation in Spring is used to give a preference to a bean when multiple beans of the same type exist.
- How does Spring Boot support reactive programming in conjunction with traditional MVC patterns?
- In a Spring Boot application, which utility is primarily used for performing HTTP requests in integration tests?
- In a Spring Boot application, how can you specify the conditions under which a method's cache can be evicted?
- Imagine you are developing a complex Spring Boot application with custom beans, controllers, services, and repositories. How would you effectively utilize different annotations for a clean and maintainable code structure?