public interface UserDetailsManager extends UserDetailsService
UserDetailsService
which provides the ability to create new
users and update existing ones.Modifier and Type | Method and Description |
---|---|
void |
changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
Modify the current user's password.
|
void |
createUser(UserDetails user)
Create a new user with the supplied details.
|
void |
deleteUser(java.lang.String username)
Remove the user with the given login name from the system.
|
void |
updateUser(UserDetails user)
Update the specified user.
|
boolean |
userExists(java.lang.String username)
Check if a user with the supplied login name exists in the system.
|
loadUserByUsername
void createUser(UserDetails user)
void updateUser(UserDetails user)
void deleteUser(java.lang.String username)
void changePassword(java.lang.String oldPassword, java.lang.String newPassword)
oldPassword
- current password (for re-authentication if required)newPassword
- the password to change toboolean userExists(java.lang.String username)