Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <SeSelector.h>
Classes | |
class | AidSelectorBuilder |
class | FileControlInformation |
class | FileOccurrence |
Public Member Functions | |
const std::vector< uint8_t > & | getAidToSelect () const |
FileOccurrence | getFileOccurrence () const |
FileControlInformation | getFileControlInformation () const |
std::shared_ptr< std::set< int > > | getSuccessfulSelectionStatusCodes () const |
void | addSuccessfulStatusCode (int statusCode) |
AidSelector (AidSelectorBuilder *builder) | |
Static Public Member Functions | |
static std::unique_ptr< AidSelectorBuilder > | builder () |
Public Attributes | |
friend | AidSelectorBuilder |
Static Public Attributes | |
static const int | AID_MIN_LENGTH = 5 |
static const int | AID_MAX_LENGTH = 16 |
Friends | |
KEYPLECORE_API std::ostream & | operator<< (std::ostream &os, const AidSelector &a) |
AID’s bytes of the SE application to select. In case the SE application is currently not selected, a logical channel is established and the corresponding SE application is selected by the SE reader, otherwise keep the current channel. - optional FileOccurrence and FileControlInformation defines selections modes according to ISO7816-4 - optional successfulSelectionStatusCodes define a list of accepted SW1SW2 codes (in addition to 9000). Allows, for example, to manage the selection of the invalidated cards. - AidSelector could be missing in SeSelector when operating SE which don’t support the Select Application command (as it is the case for SAM).
keyple::core::seproxy::AidSelector::AidSelector | ( | AidSelectorBuilder * | builder | ) |
Private constructor
C++ vs. Java: Should be private but would forbid usage of make_shared from SeSelector class. Setting it public for now. Could use an intermediate derived class otherwise if need be.
void keyple::core::seproxy::AidSelector::addSuccessfulStatusCode | ( | int | statusCode | ) |
Add as status code to be accepted to the list of successful selection status codes
statusCode | the status code to be accepted |
|
static |
Gets a new builder.
const std::vector< uint8_t > & keyple::core::seproxy::AidSelector::getAidToSelect | ( | ) | const |
Getter for the AID provided at construction time
FileControlInformation keyple::core::seproxy::AidSelector::getFileControlInformation | ( | ) | const |
FileOccurrence keyple::core::seproxy::AidSelector::getFileOccurrence | ( | ) | const |
std::shared_ptr< std::set< int > > keyple::core::seproxy::AidSelector::getSuccessfulSelectionStatusCodes | ( | ) | const |
Gets the list of successful selection status codes
|
friend |
|
static |
|
static |