Which component in Spring Security is responsible for evaluating method security annotations like @Secured and @PreAuthorize?
- AccessDecisionManager
- MethodSecurityInterceptor
- SecurityContextHolder
- SecurityInterceptor
The component responsible for evaluating method security annotations like @Secured and @PreAuthorize in Spring Security is the MethodSecurityInterceptor. It intercepts method invocations and enforces security rules based on the annotations.
Loading...
Related Quiz
- In Spring Boot, the _____ property is used to set the URL of the database in data source configuration.
- In which scenario would you choose WebFlux over the traditional blocking architecture in Spring Boot?
- The @PreAuthorize annotation in Spring Security uses _____ expressions to define access controls.
- You are tasked with developing a Spring Boot application using Spring Data JPA, where ensuring the consistency of the data is crucial. How would you manage the transactions in the application to ensure the integrity and consistency of the data?
- How can you configure multiple DataSources in a Spring Boot application?