Class UserDetailsMapper
java.lang.Object
com.irurueta.authserver.authorization.api.web.password.UserDetailsMapper
Maps the domain
UserAccount onto Spring Security's UserDetails.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailstoUserDetails(UserAccount account, String encodedPassword) Maps an account onto Spring Security's user details.
-
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.
-