Keypop Reader C++ API 2.0.0
Reference Reader API for C++
|
#include <CommonIsoCardSelector.hpp>
Public Types | |
enum class | FileControlInformation { FCI , FCP , FMD , NO_RESPONSE } |
enum class | FileOccurrence { FIRST , LAST , NEXT , PREVIOUS } |
Public Member Functions | |
virtual T & | filterByDfName (const std::vector< uint8_t > &aid)=0 |
virtual T & | filterByDfName (const std::string &aid)=0 |
virtual T & | setFileOccurrence (FileOccurrence fileOccurrence)=0 |
virtual T & | setFileControlInformation (FileControlInformation fileControlInformation)=0 |
Public Member Functions inherited from keypop::reader::selection::CardSelector< T > | |
virtual T & | filterByCardProtocol (const std::string &logicalProtocolName)=0 |
virtual T & | filterByPowerOnData (const std::string &powerOnDataRegex)=0 |
Common ISO filters used to restrict the selection process to certain ISO 7816-4 cards.
These filters are all optional but can also be combined.
If no filtering is specified, any card that responds when inserted in the reader will be considered selected.
Conversely, if one or more filters have been defined, the card will not be selected if one of them rejects the card.
<T> | The type of the lowest level child object. |
Definition at line 36 of file CommonIsoCardSelector.hpp.
|
strong |
Types of templates available in return for the Select Application command, according to the ISO7816-4 standard.
Enumerator | |
---|---|
FCI | File control information.
|
FCP | File control parameters.
|
FMD | File management data.
|
NO_RESPONSE | No response expected.
|
Definition at line 44 of file CommonIsoCardSelector.hpp.
|
strong |
Navigation options through the different applications contained in the card according to the ISO7816-4 standard.
Enumerator | |
---|---|
FIRST | First occurrence.
|
LAST | Last occurrence.
|
NEXT | Next occurrence.
|
PREVIOUS | Previous occurrence.
|
Definition at line 80 of file CommonIsoCardSelector.hpp.
|
pure virtual |
Selects a card application DF by its name.
The DF is selected only if its name starts with the provided AID, as defined by ISO7816-4 chapter 4.2.
The provided AID will be used as a parameter of the "Selection Application" ISO card command.
aid | The AID as a hexadecimal string of 5 to 16 bytes. |
IllegalArgumentException | If the provided string is null, invalid or out of range. |
|
pure virtual |
Selects a card application DF by its name.
The DF is selected only if its name starts with the provided AID, as defined by ISO7816-4 chapter 4.2.
The provided AID will be used as a parameter of the "Selection Application" ISO card command.
aid | The AID as a byte array containing 5 to 16 bytes. |
IllegalArgumentException | If the provided array is null or out of range. |
|
pure virtual |
Sets the file control mode (see ISO7816-4).
The default value is FileControlInformation#FCI.
fileControlInformation | The FileControlInformation. |
IllegalArgumentException | If fileControlInformation is null. |
|
pure virtual |
Sets the file occurrence mode (see ISO7816-4).
The default value is FileOccurrence#FIRST.
fileOccurrence | The FileOccurrence. |
IllegalArgumentException | If fileOccurrence is null. |