Question 1: SPRING SECURITY - Role vs Authority
In Spring Security, what is the key difference between roles and authorities?
Question 2: SPRING SECURITY - Method Level Authorization
What does the following annotation enforce?
Question 3: SPRING SECURITY - Expression-Based Access Control
Which of the following is true about Spring Security’s expression-based access control?
Question 4: SPRING SECURITY - Code Snippet (HttpSecurity Rules)
What does the following configuration do?
Question 5: SPRING SECURITY - AccessDecisionManager
Internally, what does `AccessDecisionManager` do?
Question 6: SPRING SECURITY - Code Snippet (PostAuthorize)
What does the following annotation achieve?
Question 7: SPRING SECURITY - Hierarchical Roles
If hierarchical roles are configured such that `ROLE_ADMIN > ROLE_USER`, what does it mean?
Question 8: SPRING SECURITY - Code Snippet (Custom Access Expression)
What does this expression check?
Question 9: SPRING SECURITY - Voters in Access Control
How does Spring Security’s `AccessDecisionManager` typically make decisions with multiple voters?
Question 10: SPRING SECURITY - Anonymous vs Authenticated Access
What does the following rule configure?