Question 1: SPRING SECURITY - Code Snippet (AuthenticationProvider)
What does the following custom `AuthenticationProvider` do?
Question 2: SPRING SECURITY - Code Snippet (SecurityMatcher)
What is the purpose of securityMatcher("/api/**") in a filter chain?
Question 3: SPRING SECURITY - Code Snippet (JWT Creation)
What does this code do?
Question 4: SPRING SECURITY - AccessDecisionManager
Internally, what does `AccessDecisionManager` do?
Question 5: SPRING SECURITY - Code Snippet (AccessDeniedHandler)
What does this configuration achieve?
Question 6: SPRING SECURITY - SecurityContextHolder
What does `SecurityContextHolder` store during the request lifecycle?
Question 7: SPRING SECURITY - Filter Order
How is the execution order of filters inside a SecurityFilterChain determined?
Question 8: SPRING SECURITY - Stateless vs Stateful Sessions
What is the key difference between JWT-based stateless authentication and session-based authentication?
Question 9: SPRING SECURITY - Code Snippet (PostAuthorize)
What does the following annotation achieve?
Question 10: SPRING SECURITY - Exception Translation Filter
What is the purpose of ExceptionTranslationFilter in Spring Security’s filter chain?
Question 11: SPRING SECURITY - Code Snippet (Method Security)
What happens when the following annotation is used?
Question 12: SPRING SECURITY - Code Snippet (PermitAll vs Authenticated)
What is the outcome of this chain configuration?
Question 13: SPRING SECURITY - Code Snippet (Filter Registration)
Why is a JWT filter typically placed before UsernamePasswordAuthenticationFilter?
Question 14: SPRING SECURITY - Hierarchical Roles
If hierarchical roles are configured such that `ROLE_ADMIN > ROLE_USER`, what does it mean?
Question 15: SPRING SECURITY - Code Snippet (Custom Config)
What does the following snippet configure?
Question 16: SPRING SECURITY - PasswordEncoder
Why is `PasswordEncoder` crucial in Spring Security’s internal authentication process?
Question 17: SPRING SECURITY - Multiple Chains Ordering
How can you control the evaluation order of multiple SecurityFilterChain beans?
Question 18: SPRING SECURITY - JWT Expiration
What happens when a JWT is expired?
Question 19: SPRING SECURITY - Code Snippet (Custom Access Expression)
What does this expression check?
Question 20: SPRING SECURITY - Handling CSRF Exceptions
Which exception is typically thrown when a CSRF token is missing or invalid in Spring Security?