Interface CardPresenceMonitorBlockingSpi
public interface CardPresenceMonitorBlockingSpi
Reader able to detect and notify a card removal during processing, between two APDU commands.
A typical example of readers conforming to this mode of operation are PC/SC type readers.
- Since:
- 2.3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidMonitors the card presence indefinitely (the method is blocking as long as the card is present).voidInterrupts the monitoring of the card presence.
-
Method Details
-
monitorCardPresenceDuringProcessing
Monitors the card presence indefinitely (the method is blocking as long as the card is present).This monitoring can be cancelled for an internal (for example timeout) or external reason (for example invocation of
stopCardPresenceMonitoringDuringProcessing()), in this case an exception is raised.- Throws:
ReaderIOException- If the communication with the reader has failed.TaskCanceledException- If the task has been canceled and is no longer active.- Since:
- 2.3.0
-
stopCardPresenceMonitoringDuringProcessing
void stopCardPresenceMonitoringDuringProcessing()Interrupts the monitoring of the card presence.- Since:
- 2.3.0
-