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 Type
    Method
    Description
    boolean
    cancel(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 a Fido2Exception whose error code is Fido2ErrorCode.ERROR_ABORTED.

      Parameters:
      mayInterruptIfRunning - true if the thread executing this task should be interrupted; otherwise, in-progress tasks are allowed to complete.
      Returns:
      false if the task could not be cancelled, typically because it has already completed; true otherwise.
      Since:
      1.0.0