Interface class for Grabba contact smart card reader events.
Objects which implement this interface may receive callbacks when these events occur, via delegation from a SmartcardListener object.
Note that this interface need not be directly implemented; it may be simpler to subclass SmartcardListener and thereby receive the events directly.
Thread safety: This interface is intended to be thread-safe; any classes deriving from it should ensure that the relevant methods are callable from any thread.
Public Member Functions | |
| void | APDU_Event (@NonNull SmartcardInterfaceID iface, @NonNull ResponseAPDU response) |
| Callback which is invoked when an asynchronous APDU exchange operation completes successfully. More... | |
| void | errorEvent (@NonNull SmartcardInterfaceID iface, @NonNull ErrorCode error) |
| Callback which is invoked when an asynchronous contact smart card operation fails, regardless of reasons. More... | |
| void | insertEvent (@NonNull SmartcardInterfaceID iface) |
| Callback which is invoked when a contact smart card is inserted into a reader slot on the Grabba device. More... | |
| void | powerDownEvent (@NonNull SmartcardInterfaceID iface) |
| Callback which is invoked when a contact smart card is powered down, regardless of reasons. More... | |
| void | powerUpEvent (@NonNull SmartcardInterfaceID iface, @NonNull byte[] ATR) |
| Callback which is invoked when a contact smart card is powered up. More... | |
| void | PPS_Event (@NonNull SmartcardInterfaceID iface, @NonNull SmartcardProtocol T, @NonNull SmartcardClock F, @NonNull SmartcardBaud D) |
| Callback which is invoked when a PPS exchange operation completes successfully. More... | |
| void | removeEvent (@NonNull SmartcardInterfaceID iface) |
| Callback which is invoked when a contact smart card is removed from a reader slot on the Grabba device. More... | |
| void APDU_Event | ( | @NonNull SmartcardInterfaceID | iface, |
| @NonNull ResponseAPDU | response | ||
| ) |
Callback which is invoked when an asynchronous APDU exchange operation completes successfully.
| iface | ID of the interface in which the operation occurred |
| response | APDU received by the Grabba device from the smart card |
Implemented in SmartcardListener.
| void errorEvent | ( | @NonNull SmartcardInterfaceID | iface, |
| @NonNull ErrorCode | error | ||
| ) |
Callback which is invoked when an asynchronous contact smart card operation fails, regardless of reasons.
| iface | ID of the interface in which the operation failed |
| error | Information about the error condition which caused the operation to fail |
Implemented in SmartcardListener.
| void insertEvent | ( | @NonNull SmartcardInterfaceID | iface | ) |
Callback which is invoked when a contact smart card is inserted into a reader slot on the Grabba device.
| iface | ID of the interface into which the card was inserted |
Implemented in SmartcardListener.
| void powerDownEvent | ( | @NonNull SmartcardInterfaceID | iface | ) |
Callback which is invoked when a contact smart card is powered down, regardless of reasons.
| iface | ID of the interface for which the card has been powered down |
Implemented in SmartcardListener.
| void powerUpEvent | ( | @NonNull SmartcardInterfaceID | iface, |
| @NonNull byte [] | ATR | ||
| ) |
Callback which is invoked when a contact smart card is powered up.
| iface | ID of the interface for which the card has been powered up |
| ATR | Answer-to-Reset (ATR) data received from the card |
Implemented in SmartcardListener.
| void PPS_Event | ( | @NonNull SmartcardInterfaceID | iface, |
| @NonNull SmartcardProtocol | T, | ||
| @NonNull SmartcardClock | F, | ||
| @NonNull SmartcardBaud | D | ||
| ) |
Callback which is invoked when a PPS exchange operation completes successfully.
| iface | ID of the interface in which the operation occurred |
| T | Selected protocol (T) - should match that of the request |
| F | Clock rate conversion integer and associated maximum frequency - should match that of the request |
| D | Baud rate adjustment integer - should match that of the request |
Implemented in SmartcardListener.
| void removeEvent | ( | @NonNull SmartcardInterfaceID | iface | ) |
Callback which is invoked when a contact smart card is removed from a reader slot on the Grabba device.
| iface | ID of the interface from which the card was removed |
Implemented in SmartcardListener.