![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CalypsoExtensionService.h>
Public Member Functions | |
const std::string & | getReaderApiVersion () const override |
const std::string & | getCardApiVersion () const override |
const std::string & | getCommonApiVersion () const override |
std::shared_ptr< SearchCommandData > | createSearchCommandData () const |
std::shared_ptr< CalypsoCardSelection > | createCardSelection () const |
std::shared_ptr< CalypsoSamSelection > | createSamSelection () const |
std::shared_ptr< CardResourceProfileExtension > | createSamResourceProfileExtension (const std::shared_ptr< CalypsoSamSelection > calypsoSamSelection) const |
std::shared_ptr< CardSecuritySetting > | createCardSecuritySetting () const |
std::shared_ptr< CardTransactionManager > | createCardTransaction (std::shared_ptr< CardReader > reader, const std::shared_ptr< CalypsoCard > calypsoCard, const std::shared_ptr< CardSecuritySetting > cardSecuritySetting) |
std::shared_ptr< CardTransactionManager > | createCardTransactionWithoutSecurity (std::shared_ptr< CardReader > reader, const std::shared_ptr< CalypsoCard > calypsoCard) |
Static Public Member Functions | |
static std::shared_ptr< CalypsoExtensionService > | getInstance () |
Static Public Attributes | |
static const std::string | PRODUCT_TYPE = "productType" |
Card extension dedicated to the management of Calypso cards.
Definition at line 54 of file CalypsoExtensionService.h.
std::shared_ptr< CardSecuritySetting > keyple::card::calypso::CalypsoExtensionService::createCardSecuritySetting | ( | ) | const |
Creates an instance of CalypsoCardSelection that can be supplemented later with specific commands.
Definition at line 97 of file CalypsoExtensionService.cpp.
std::shared_ptr< CalypsoCardSelection > keyple::card::calypso::CalypsoExtensionService::createCardSelection | ( | ) | const |
Creates an instance of CalypsoCardSelection that can be supplemented later with specific commands.
Definition at line 78 of file CalypsoExtensionService.cpp.
std::shared_ptr< CardTransactionManager > keyple::card::calypso::CalypsoExtensionService::createCardTransaction | ( | std::shared_ptr< CardReader > | reader, |
const std::shared_ptr< CalypsoCard > | calypsoCard, | ||
const std::shared_ptr< CardSecuritySetting > | cardSecuritySetting | ||
) |
Creates a card transaction manager to handle operations secured with a SAM.
The reader and the card's initial data are those from the selection.
The provided CardSecuritySetting must match the specific needs of the card (SAM card resource profile and other optional settings).
reader | The reader through which the card communicates. |
calypsoCard | The initial card data provided by the selection process. |
cardSecuritySetting | The security settings. |
IllegalArgumentException | If one of the provided argument is null or if the CalypsoCard has a null or unknown product type. |
Definition at line 102 of file CalypsoExtensionService.cpp.
std::shared_ptr< CardTransactionManager > keyple::card::calypso::CalypsoExtensionService::createCardTransactionWithoutSecurity | ( | std::shared_ptr< CardReader > | reader, |
const std::shared_ptr< CalypsoCard > | calypsoCard | ||
) |
Creates a card transaction manager to handle non-secured operations.
reader | The reader through which the card communicates. |
calypsoCard | The initial card data provided by the selection process. |
IllegalArgumentException | If one of the provided argument is null or if the CalypsoCard has a null or unknown product type. |
Definition at line 125 of file CalypsoExtensionService.cpp.
std::shared_ptr< CardResourceProfileExtension > keyple::card::calypso::CalypsoExtensionService::createSamResourceProfileExtension | ( | const std::shared_ptr< CalypsoSamSelection > | calypsoSamSelection | ) | const |
Creates an instance of CardResourceProfileExtension to be provided to the CardResourceService.
The provided argument defines the selection rules to be applied to the SAM when detected by the card resource service.
calypsoSamSelection | A not null CalypsoSamSelection. |
IllegalArgumentException | If calypsoSamSelection is null. |
Definition at line 89 of file CalypsoExtensionService.cpp.
std::shared_ptr< CalypsoSamSelection > keyple::card::calypso::CalypsoExtensionService::createSamSelection | ( | ) | const |
Creates an instance of CalypsoCardSelection.
Definition at line 83 of file CalypsoExtensionService.cpp.
std::shared_ptr< SearchCommandData > keyple::card::calypso::CalypsoExtensionService::createSearchCommandData | ( | ) | const |
Creates an instance of SearchCommandData to be used to define the parameters of the CardTransactionManager::prepareSearchRecords(SearchCommandData) method.
Definition at line 73 of file CalypsoExtensionService.cpp.
|
override |
Definition at line 63 of file CalypsoExtensionService.cpp.
|
override |
Definition at line 68 of file CalypsoExtensionService.cpp.
|
static |
Gets the single instance of CalypsoExtensionService.
Definition at line 49 of file CalypsoExtensionService.cpp.
|
override |
Definition at line 58 of file CalypsoExtensionService.cpp.
|
static |
Definition at line 59 of file CalypsoExtensionService.h.