/
ValidateUserTask
ValidateUserTask
Used to verify a user's credentials.
On success a session token will be returned that will be used to securely make calls to other REST API tasks.
ValidateUserTask.runTask(ValidateUserTask.ValidateUserTaskListener taskListener, String serverUrl, String username, String password)
taskListener - Listener to processes the result of the request.
serverUrl - The URL of the SurePassID FIDO Server.
username - The username to validate.
password -The password to validate.
Example
ValidateUserTask
ValidateUserTask.runTask(new ValidateUserTask.ValidateUserTaskListener() { /** * Called when the username and password have successfully validated. */ @Override public void onTaskSuccess(String sessionToken) { // Save the session token for processing other REST calls securely. mSessionToken = sessionToken; } /** * Called when there was an error attempting to verify the username and password. * @param errorMessage - Message describing the error that occurred. * @param errorCode - Code for the error that occurred. */ @Override public void onTaskError(String errorMessage, int errorCode) { } }, mServerUrl, username, password);
, multiple selections available,
Related content
ValidateUserTask (new)
ValidateUserTask (new)
More like this
ValidateOtpTask
ValidateOtpTask
More like this
GetSecurityKeyListTask
GetSecurityKeyListTask
More like this
SendOtpTask
SendOtpTask
More like this
FIDO U2F Enroll Operation - Android Example
FIDO U2F Enroll Operation - Android Example
More like this
Validate User
Validate User
More like this