public interface UserPasswordService<P extends PasswordToken,U extends User>
extends org.springframework.security.core.userdetails.UserDetailsPasswordService
| Modifier and Type | Method and Description |
|---|---|
boolean |
changePassword(ChangePasswordForm changePasswordForm,
org.springframework.validation.BindingResult errors)
From the provided
ChangePasswordForm, attempt to change the user's password. |
boolean |
createResetPasswordToken(String clientId,
String username)
Creates a reset password token for the specified user, if they exist.
|
boolean |
createTokenForUser(String clientId,
String username)
Deprecated.
|
boolean |
resetPassword(ResetPasswordForm resetPasswordForm,
org.springframework.validation.BindingResult errors)
From the provided
ResetPasswordForm, attempt to reset the user's password. |
U |
updatePasswordForUser(U user,
String password,
String clientId)
Send a password change notification email and update the user's password.
|
boolean resetPassword(ResetPasswordForm resetPasswordForm, org.springframework.validation.BindingResult errors)
ResetPasswordForm, attempt to reset the user's password. If a
failure occurs, errors will be populated on BindingResult and `false` is returned.
Otherwise, return `true`.resetPasswordForm - The form to use to reset the user's password.errors - The object to hold any errors that might occur.ResetPasswordForm passed validation in order for the
password to be reset.boolean changePassword(ChangePasswordForm changePasswordForm, org.springframework.validation.BindingResult errors)
ChangePasswordForm, attempt to change the user's password. If a
failure occurs, errors will be populated on BindingResult and `false` is returned.
Otherwise, return `true`.changePasswordForm - The form to use to change the user's password.errors - The object to hold any errors that might occur.ChangePasswordForm passed validation in order for the
password to be changed.boolean createResetPasswordToken(String clientId, String username) throws AccountLockedException
clientId - The AuthorizedClient.getId() to verify againstusername - The username of the user for which to validate and create a token.AccountLockedException - if user is locked and unable to reset their password@Deprecated boolean createTokenForUser(String clientId, String username) throws AccountLockedException
createResetPasswordToken(java.lang.String, java.lang.String)
instead.clientId - The AuthorizedClient.getId() to verify againstusername - The username of the user for which to validate and create a token.AccountLockedException - if user is locked and unable to reset their passwordU updatePasswordForUser(U user, String password, String clientId)
user - The user who's password to update.password - The new password for the user.clientId - The clientId from the request.Copyright © 2021. All rights reserved.