Interface UserDetailsPasswordService
- All Known Implementing Classes:
InMemoryUserDetailsManager,JdbcUserDetailsManager
public interface UserDetailsPasswordService
An API for changing a
UserDetails password.- Since:
- 5.1
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionupdatePassword(UserDetails user, @Nullable String newPassword) Modify the specified user's password.
-
Field Details
-
NOOP
-
-
Method Details
-
updatePassword
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
-