Spring Security · interview question
What does Spring Security's Authentication Filter primarily do?
Multiple choiceEasychapter-17-curatedpremiumspring-securityspring-security-filter-chain
Answer and explanation
Correct answer
B. Validates user credentials.
Why
The Authentication Filter in Spring Security is responsible for validating user credentials and ensuring that the user is who they claim to be before allowing access to protected resources.
Test yourself on Spring Security
A free test with instant, explained results. No account needed.
More Spring Security questions
- What HTTP response code does Spring Security typically return for unauthorized requests?
- In a stateless JWT token, what component ensures the token's integrity and prevents tampering?
- How does Spring Security handle a request identified as a potential CSRF attack?
- Why is separating authentication from authorization important in a real system?
- In the context of BCrypt, what does increasing the work factor achieve?
- Which of the following filters in the Spring Security Filter Chain is primarily responsible for ensuring that requests…