Class PasswordDiffersFromUsernameValidator
java.lang.Object
games.stendhal.server.core.account.PasswordDiffersFromUsernameValidator
- All Implemented Interfaces:
AccountParameterValidator
public class PasswordDiffersFromUsernameValidator
extends Object
implements AccountParameterValidator
checks that the password is not closly related to the username.
- Author:
- timothyb89
-
Constructor Summary
ConstructorDescriptionPasswordDiffersFromUsernameValidator(String username, String password)
Creates a new PasswordDiffersFromUsernameValidator validator. -
Method Summary
-
Constructor Details
-
PasswordDiffersFromUsernameValidator
Creates a new PasswordDiffersFromUsernameValidator validator.- Parameters:
username
- name of userpassword
- password
-
-
Method Details
-
validate
Description copied from interface:AccountParameterValidator
validates a parameter provided for account creation.- Specified by:
validate
in interfaceAccountParameterValidator
- Returns:
null
in case the parameter is valid, or an error otherwise
-