Class ReservedSubStringValidator
java.lang.Object
games.stendhal.server.core.account.ReservedSubStringValidator
- All Implemented Interfaces:
AccountParameterValidator
validates that reserved names (like admin) are not used as substrings.
- Author:
- hendrik
-
Constructor Summary
ConstructorDescriptionReservedSubStringValidator(String parameterValue)
creates a ReservedSubStringValidator. -
Method Summary
-
Constructor Details
-
ReservedSubStringValidator
creates a ReservedSubStringValidator.- Parameters:
parameterValue
- value to validate
-
-
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
-