public void ChangePassword( string plainTextPassword, List <string> bannedPasswordLiteralList, List <string> bannedPasswordPatternList) { // Validate format UserPassword.ValidateFormat(plainTextPassword); // Validate banned list UserPassword.ValidateOnBannedList(plainTextPassword, bannedPasswordLiteralList, bannedPasswordPatternList); // Set password Password = UserPassword.Hash(plainTextPassword); }