Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
keyple::core::seproxy::SeSelector::AidSelector Class Referencefinal

#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< AidSelectorBuilderbuilder ()
 

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)
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ AidSelector()

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.

Member Function Documentation

◆ addSuccessfulStatusCode()

void keyple::core::seproxy::AidSelector::addSuccessfulStatusCode ( int  statusCode)

Add as status code to be accepted to the list of successful selection status codes

Parameters
statusCodethe status code to be accepted

◆ builder()

std::unique_ptr< AidSelectorBuilder > keyple::core::seproxy::AidSelector::builder ( )
static

Gets a new builder.

Returns
a new builder instance

◆ getAidToSelect()

const std::vector< uint8_t > & keyple::core::seproxy::AidSelector::getAidToSelect ( ) const

Getter for the AID provided at construction time

Returns
byte array containing the AID

◆ getFileControlInformation()

FileControlInformation keyple::core::seproxy::AidSelector::getFileControlInformation ( ) const
Returns
the file control information parameter

◆ getFileOccurrence()

FileOccurrence keyple::core::seproxy::AidSelector::getFileOccurrence ( ) const
Returns
the file occurrence parameter

◆ getSuccessfulSelectionStatusCodes()

std::shared_ptr< std::set< int > > keyple::core::seproxy::AidSelector::getSuccessfulSelectionStatusCodes ( ) const

Gets the list of successful selection status codes

Returns
the list of status codes

Friends And Related Function Documentation

◆ operator<<

KEYPLECORE_API std::ostream& operator<< ( std::ostream &  os,
const AidSelector a 
)
friend

Member Data Documentation

◆ AID_MAX_LENGTH

const int keyple::core::seproxy::SeSelector::AidSelector::AID_MAX_LENGTH = 16
static

◆ AID_MIN_LENGTH

const int keyple::core::seproxy::SeSelector::AidSelector::AID_MIN_LENGTH = 5
static

◆ AidSelectorBuilder


The documentation for this class was generated from the following files: