Skip to content
Sharp

Authentication · interview question

In the context of Spring Security, what is the primary role of the 'AuthenticationManager'?

Multiple choiceHardchapter-17-curatedpremiumauthenticationplaintext-passwords
Choose one answer
Answer and explanation

Correct answer

C. To validate user credentials against stored authentication information.

Why

The AuthenticationManager is responsible for validating user credentials against stored authentication information, typically using services like UserDetailsService and PasswordEncoder to perform checks.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →