java.lang.Object
com.irurueta.authserver.authorization.api.web.password.UserDetailsMapper

@Component public class UserDetailsMapper extends Object
Maps the domain UserAccount onto Spring Security's UserDetails.
  • Constructor Details

    • UserDetailsMapper

      public UserDetailsMapper()
  • Method Details

    • toUserDetails

      public org.springframework.security.core.userdetails.UserDetails toUserDetails(UserAccount account, String encodedPassword)
      Maps an account onto Spring Security's user details.
      Parameters:
      account - the account.
      encodedPassword - the encoded password the details carry: the stored one, or the upgraded hash right after a password upgrade.
      Returns:
      the user details, disabled when the account is disabled and carrying the account's authorities.