|
Keypop Reader C++ API - 2.1.0
Component of the Keypop C++ API
|
Contains operations common to all card transactions. More...
#include <keypop/reader/transaction/spi/CardTransactionManager.hpp>
Public Member Functions | |
| virtual T & | processCommands (ChannelControl channelControl)=0 |
| Processes all previously prepared commands and closes the physical channel if requested. More... | |
Contains operations common to all card transactions.
To exchange data with the card, it is first necessary to prepare the commands to be transmitted to the card and then to process the prepared commands.
The card commands preparation step makes it possible to group commands together to minimize network data exchanges (especially useful in a distributed architecture).
The SmartCard object registered with the manager is updated during the transaction after each data exchange with the card.
| <T> | The type of the lowest level child object. |
Definition at line 43 of file CardTransactionManager.hpp.
|
pure virtual |
Processes all previously prepared commands and closes the physical channel if requested.
All APDUs corresponding to the prepared commands are sent to the card, their responses are retrieved and used to update the SmartCard associated with the transaction.
For write commands, the SmartCard is updated only when the command is successful.
The process is interrupted at the first failed command.
| channelControl | Policy for managing the physical channel after executing commands to the card. |
| ReaderCommunicationException | If a communication error with the card reader occurs. |
| CardCommunicationException | If a communication error with the card occurs. |
| InvalidCardResponseException | If a command returns an unexpected status. |