Keypop Card C++ API 2.0.0
Reference Card API for C++
|
#include <CardSelectionResponse.hpp>
Public Member Functions | |
virtual const std::string & | getPowerOnData () const =0 |
virtual const std::shared_ptr< ApduResponseApi > | getSelectApplicationResponse () const =0 |
virtual bool | hasMatched () const =0 |
virtual const std::shared_ptr< CardResponseApi > | getCardResponse () const =0 |
Friends | |
std::ostream & | operator<< (std::ostream &os, const std::shared_ptr< CardSelectionResponseApi > csr) |
std::ostream & | operator<< (std::ostream &os, const std::vector< std::shared_ptr< CardSelectionResponseApi > > &csrs) |
Data from the start-up phase with the card: selection data and any additional responses.
Includes the status of the selection itself and the responses to any commands that may have been executed afterwards.
Definition at line 33 of file CardSelectionResponse.hpp.
|
pure virtual |
Gets the responses of the card to the requests present in the calypsonet::terminal::card::spi::CardRequestSpi from the calypsonet::terminal::card::spi::CardSelectionRequestSpi.
|
pure virtual |
Gets the card's power-on data.
The power-on data is defined as the data retrieved by the reader when the card is inserted.
In the case of a contact reader, this is the Answer To Reset data (ATR) defined by ISO7816.
In the case of a contactless reader, the reader decides what this data is.
Some contactless readers provide a virtual ATR (partially standardized by the PC/SC standard), but other devices can have their own definition, including for example elements from the anti-collision stage of the ISO14443 protocol (ATQA, ATQB, ATS, SAK, etc) or any proprietary definitions.
These data being variable from one reader to another, they are defined here in string format which can be either a hexadecimal string or any other relevant information.
|
pure virtual |
Gets the calypsonet::terminal::card::ApduResponseApi received from the card in response to the Select Application command.
|
pure virtual |
Gives the selection process status.
|
friend |
Definition at line 88 of file CardSelectionResponse.hpp.
|
friend |
Definition at line 100 of file CardSelectionResponse.hpp.