Sitemap

Spring Security Interview Questions and Answer

Spring Security Interview Questions and Answer

29 min readNov 10, 2025
  1. What is Spring Security?
  2. What are the core components of Spring Security?
  3. Explain Authentication vs. Authorization in Spring Security?
  4. Explain salting and its usage?
  5. What do you mean by HASHING in spring security?
  6. How do you configure security in Spring Security?
  7. What is a SecurityContext?
  8. What is UserDetailsService?
  9. Explain PasswordEncoder and its importance?
  10. Explain method-level security?
  11. What is CSRF protection?
  12. What is CORS?
  13. Explain Spring Security filters?
  14. Why filters instead of interceptors or controllers?
  15. What is session fixation protection?
  16. How does Spring Security handle concurrent logins?
  17. What is JWT?
  18. Why use JWT in Spring Boot?
  19. JWT vs OAuth2
  20. How does JWT authentication flow work?
  21. What is inside a JWT?
  22. Where to store the JWT token?
  23. How do you handle JWT expiration?
  24. What is the difference between Access Token and Refresh Token?

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web
Already have an account? Sign in

No responses yet

Write a response