Interface Fido2ResponseTask
public interface Fido2ResponseTask
Represents an asynchronous FIDO2 operation that can be cancelled.
An instance of this interface is returned by Fido2Client.respondWithArgs(com.thalesgroup.gemalto.fido2.client.Fido2RespondArgs, com.thalesgroup.gemalto.fido2.client.Fido2ResponseCallback)
to allow for cancellation of the ongoing operation.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancancel(boolean mayInterruptIfRunning) Attempts to cancel the execution of this task.
-
Method Details
-
cancel
boolean cancel(boolean mayInterruptIfRunning) Attempts to cancel the execution of this task.If cancellation is successful, the
Fido2ResponseCallback.onError(com.thalesgroup.gemalto.fido2.Fido2Exception)method will be invoked with aFido2Exceptionwhose error code isFido2ErrorCode.ERROR_ABORTED.- Parameters:
mayInterruptIfRunning-trueif the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete.- Returns:
falseif the task could not be cancelled, typically because it has already completed;trueotherwise.- Since:
- 1.0.0
-