| 
         For the latest stable version, please use Spring Security 6.4.1!  | 
    
UserDetails
UserDetails is returned by the UserDetailsService.
The DaoAuthenticationProvider validates the UserDetails and then returns an Authentication that has a principal that is the UserDetails returned by the configured UserDetailsService.