The
AuthenticationProvider
is the component that implements the authentication logic and uses the UserDetailsService
to load details about the user. To find the user by username, it calls the loadUserByUsername(String username)
method.
When single task can be done by multiple groups/family of objects and decision is taken at the runtime.
No comments:
Post a Comment