Question 1: SPRING SECURITY - Authentication vs Authorization Exceptions
Which statement correctly differentiates between AuthenticationException and AccessDeniedException in Spring Security?
Question 2: SPRING SECURITY - Custom AuthenticationEntryPoint
What is the purpose of implementing AuthenticationEntryPoint in Spring Security?
Question 3: SPRING SECURITY - Code Snippet (EntryPoint)
What HTTP status does this custom entry point return for unauthenticated requests?
Question 4: SPRING SECURITY - AccessDeniedHandler
In Spring Security, what is the role of AccessDeniedHandler?
Question 5: SPRING SECURITY - Code Snippet (AccessDeniedHandler)
What does this configuration achieve?
Question 6: SPRING SECURITY - Exception Translation Filter
What is the purpose of ExceptionTranslationFilter in Spring Security’s filter chain?
Question 7: SPRING SECURITY - Code Snippet (Custom Config)
What does the following snippet configure?
Question 8: SPRING SECURITY - Handling CSRF Exceptions
Which exception is typically thrown when a CSRF token is missing or invalid in Spring Security?
Question 9: SPRING SECURITY - AuthenticationFailureHandler
When customizing login failures, which handler is used to control the response after an AuthenticationException occurs during form login?
Question 10: SPRING SECURITY - Default Exception Handling
By default, how does Spring Security handle AccessDeniedException in a web application with form login enabled?