Interface PasswordUpdateService

All Known Implementing Classes:
PasswordUpdateServiceImpl

public interface PasswordUpdateService
  • Method Details

    • updatePassword

      void updatePassword(String username, @Nullable @Nullable String oldPassword, String newPassword) throws UpdatePasswordException
      Updates and verifies the new password for given credentials
      Parameters:
      username - user for which the new password should be set
      oldPassword - the current password (user input) - may be null for usermanagers
      newPassword - new password (user input)
      Throws:
      UpdatePasswordException - when the supplied password(s) are not valid
    • validatePassword

      PasswordValidationResult validatePassword(String username, String newPassword)
      Validate a password against the password policy
      Parameters:
      username - the name of the user
      newPassword - the new password
      Returns:
      the validation result
    • getPasswordRules

      List<PasswordRule> getPasswordRules()
      Returns:
      the current password policy