SendOtpTask

SendOtpTask.runTask(TaskListener taskListener, String serverUrl, String sessionToken, String otpDeliveryMethod)

taskListener - Listener to processes the result of the request.

serverUrl - The URL of the SurePassID FIDO Server.

sessionToken - The value returned by ValidateUserTask after successfully authenticating with a username and password.

otpDeliveryMethod - The desired method by which to send the OTP value.

SendOtpTask.OTP_DELIVERY_METHOD_SMS
SendOtpTask.OTP_DELIVERY_METHOD_EMAIL
SendOtpTask.runTask(new TaskListener() {
    @Override
    public void onTaskSuccess() {
    }

    @Override
    public void onTaskError(String errorMessage, int errorCode) {
    }
}, serverUrl, mSessiontoken, mOtpDeliveryMethod);