Interface UserDetailsPasswordService
-
- All Known Implementing Classes:
InMemoryUserDetailsManager
public interface UserDetailsPasswordServiceAn API for changing aUserDetailspassword.- Since:
- 5.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserDetailsupdatePassword(UserDetails user, java.lang.String newPassword)Modify the specified user's password.
-
-
-
Method Detail
-
updatePassword
UserDetails updatePassword(UserDetails user, java.lang.String newPassword)
Modify the specified user's password. This should change the user's password in the persistent user repository (database, LDAP etc).- Parameters:
user- the user to modify the password fornewPassword- the password to change to, encoded by the configuredPasswordEncoder- Returns:
- the updated UserDetails with the new password
-
-