Used to validate user creation requests @param userName User Name @param passWord User Password @return Boolean value stating weather or not these supplied attributes make a valid user
(String userName, String passWord)
| 163 | * @return Boolean value stating weather or not these supplied attributes make a valid user |
| 164 | */ |
| 165 | public static boolean isValidUser(String userName, String passWord) |
| 166 | { |
| 167 | boolean result = false; |
| 168 | result = userName.length() > 2 && passWord.length() > 7 && userName.length() <= 32 && passWord.length() <= 512; |
| 169 | if (!result) |
| 170 | { |
| 171 | log.debug("Invalid Data detected in Validate.isValidUser()"); |
| 172 | } |
| 173 | return result; |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Used to validate user creation requests |