Returns a list of statements explaining why the password policy would disallow a proposed password for a new user.
You can use this method to test the password policy validation. This could be done prior to an action where a new
user and related password are created, using methods like the ones in
UserService. For example, you
could use this to validate a password in a create user form in the user interface, as the user enters it. The
username and new password must be not empty to perform the validation. Note, this method will help you validate
against the policy only. It won't check any other validations that might be performed when creating a new user, e.g.
checking whether a user with the same name already exists.
Returns a list of statements explaining why the password policy would disallow a proposed password for a new user. You can use this method to test the password policy validation. This could be done prior to an action where a new user and related password are created, using methods like the ones in UserService. For example, you could use this to validate a password in a create user form in the user interface, as the user enters it. The username and new password must be not empty to perform the validation. Note, this method will help you validate against the policy only. It won't check any other validations that might be performed when creating a new user, e.g. checking whether a user with the same name already exists.