In Spring Security, which class is primarily responsible for holding the authenticated user’s details?

  • UserDetails
  • UserPrincipal
  • AuthenticationDetails
  • SecurityContext
In Spring Security, the class primarily responsible for holding the authenticated user's details is UserDetails. It represents user information, including username, password, authorities, and account status. SecurityContext is used to hold the security context, and the other options do not typically hold user details.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *