Skip to content

Instantly share code, notes, and snippets.

@ecgreb
Created April 11, 2017 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecgreb/1cc346faf7b5d8a2b4830208ae8a3e9e to your computer and use it in GitHub Desktop.
Save ecgreb/1cc346faf7b5d8a2b4830208ae8a3e9e to your computer and use it in GitHub Desktop.
class TestAccountValidator extends AccountValidator {
@Override public void validate(String username, String password, Callback callback) {
if ("valid_username".equals(username) && "valid_password".equals(password)) {
callback.onValidationComplete(true);
} else {
callback.onValidationComplete(false);
}
}
@Override public boolean isValidating() {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment