Created
April 11, 2017 06:52
-
-
Save ecgreb/1cc346faf7b5d8a2b4830208ae8a3e9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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