![]() |
Keyple Card Calypso C++ Library 2.2.2
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< BasicSignatureComputationData > | createBasicSignatureComputationData () const |
std::shared_ptr< TraceableSignatureComputationData > | createTraceableSignatureComputationData () const |
std::shared_ptr< BasicSignatureVerificationData > | createBasicSignatureVerificationData () const |
std::shared_ptr< TraceableSignatureVerificationData > | createTraceableSignatureVerificationData () 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 > cardReader, const std::shared_ptr< CalypsoCard > calypsoCard, const std::shared_ptr< CardSecuritySetting > cardSecuritySetting) const |
std::shared_ptr< CardTransactionManager > | createCardTransactionWithoutSecurity (std::shared_ptr< CardReader > cardReader, const std::shared_ptr< CalypsoCard > calypsoCard) const |
std::shared_ptr< SamSecuritySetting > | createSamSecuritySetting () const |
std::shared_ptr< SamTransactionManager > | createSamTransaction (std::shared_ptr< CardReader > samReader, const std::shared_ptr< CalypsoSam > calypsoSam, const std::shared_ptr< SamSecuritySetting > samSecuritySetting) const |
std::shared_ptr< SamTransactionManager > | createSamTransactionWithoutSecurity (std::shared_ptr< CardReader > samReader, const std::shared_ptr< CalypsoSam > calypsoSam) const |
Static Public Member Functions | |
static std::shared_ptr< CalypsoExtensionService > | getInstance () |
Card extension dedicated to the management of Calypso cards.
Definition at line 64 of file CalypsoExtensionService.h.
std::shared_ptr< BasicSignatureComputationData > keyple::card::calypso::CalypsoExtensionService::createBasicSignatureComputationData | ( | ) | const |
Returns a new instance of BasicSignatureComputationData to use to define the parameters of the CardTransactionManager::prepareComputeSignature(CommonSignatureComputationData) and SamTransactionManager::prepareComputeSignature(CommonSignatureComputationData) methods.
Definition at line 82 of file CalypsoExtensionService.cpp.
std::shared_ptr< BasicSignatureVerificationData > keyple::card::calypso::CalypsoExtensionService::createBasicSignatureVerificationData | ( | ) | const |
Returns a new instance of BasicSignatureVerificationData to use to define the parameters of the CardTransactionManager::prepareVerifySignature(CommonSignatureVerificationData) and SamTransactionManager::prepareVerifySignature(CommonSignatureVerificationData) methods.
Definition at line 96 of file CalypsoExtensionService.cpp.
std::shared_ptr< CardSecuritySetting > keyple::card::calypso::CalypsoExtensionService::createCardSecuritySetting | ( | ) | const |
Returns a new instance of CardSecuritySetting to use for secure card operations.
Definition at line 128 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 109 of file CalypsoExtensionService.cpp.
std::shared_ptr< CardTransactionManager > keyple::card::calypso::CalypsoExtensionService::createCardTransaction | ( | std::shared_ptr< CardReader > | cardReader, |
const std::shared_ptr< CalypsoCard > | calypsoCard, | ||
const std::shared_ptr< CardSecuritySetting > | cardSecuritySetting | ||
) | const |
Return a new card transaction manager to handle operations secured with a control 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).
cardReader | 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 "calypsoCard" has a null or unknown product type. |
Definition at line 133 of file CalypsoExtensionService.cpp.
std::shared_ptr< CardTransactionManager > keyple::card::calypso::CalypsoExtensionService::createCardTransactionWithoutSecurity | ( | std::shared_ptr< CardReader > | cardReader, |
const std::shared_ptr< CalypsoCard > | calypsoCard | ||
) | const |
Returns a new card transaction manager to handle non-secured operations.
cardReader | 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 "calypsoCard" has a null or unknown product type. |
Definition at line 145 of file CalypsoExtensionService.cpp.
std::shared_ptr< CardResourceProfileExtension > keyple::card::calypso::CalypsoExtensionService::createSamResourceProfileExtension | ( | const std::shared_ptr< CalypsoSamSelection > | calypsoSamSelection | ) | const |
Returns a new instance of CardResourceProfileExtension to provide to the keyple::core::service::resource::CardResourceService service.
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 120 of file CalypsoExtensionService.cpp.
std::shared_ptr< SamSecuritySetting > keyple::card::calypso::CalypsoExtensionService::createSamSecuritySetting | ( | ) | const |
Returns a new instance of SamSecuritySetting to use for secure SAM operations.
Definition at line 194 of file CalypsoExtensionService.cpp.
std::shared_ptr< CalypsoSamSelection > keyple::card::calypso::CalypsoExtensionService::createSamSelection | ( | ) | const |
Returns a new instance of CalypsoSamSelection to use when selecting a SAM.
Definition at line 114 of file CalypsoExtensionService.cpp.
std::shared_ptr< SamTransactionManager > keyple::card::calypso::CalypsoExtensionService::createSamTransaction | ( | std::shared_ptr< CardReader > | samReader, |
const std::shared_ptr< CalypsoSam > | calypsoSam, | ||
const std::shared_ptr< SamSecuritySetting > | samSecuritySetting | ||
) | const |
Returns a new SAM transaction manager to handle operations secured with a control SAM.
The reader and the SAM's initial data are those from the selection.
The provided SamSecuritySetting must match the specific needs of the SAM (SAM card resource profile and other optional settings).
samReader | The reader through which the SAM communicates. |
calypsoSam | The initial SAM data provided by the selection process. |
samSecuritySetting | The security settings. @retur A not null reference. |
IllegalArgumentException | If one of the provided argument is null or if "calypsoSam" has a null or unknown product type. |
Definition at line 199 of file CalypsoExtensionService.cpp.
std::shared_ptr< SamTransactionManager > keyple::card::calypso::CalypsoExtensionService::createSamTransactionWithoutSecurity | ( | std::shared_ptr< CardReader > | samReader, |
const std::shared_ptr< CalypsoSam > | calypsoSam | ||
) | const |
Returns a new SAM transaction manager to handle non-secured operations.
samReader | The reader through which the SAM communicates. |
calypsoSam | The initial SAM data provided by the selection process. |
IllegalArgumentException | If one of the provided argument is null or if "calypsoSam" has a null or unknown product type. |
Definition at line 207 of file CalypsoExtensionService.cpp.
std::shared_ptr< SearchCommandData > keyple::card::calypso::CalypsoExtensionService::createSearchCommandData | ( | ) | const |
Returns a new instance of SearchCommandData to use to define the parameters of the CardTransactionManager::prepareSearchRecords(SearchCommandData) method.
Definition at line 76 of file CalypsoExtensionService.cpp.
std::shared_ptr< TraceableSignatureComputationData > keyple::card::calypso::CalypsoExtensionService::createTraceableSignatureComputationData | ( | ) | const |
Returns a new instance of TraceableSignatureComputationData to use to define the parameters of the CardTransactionManager::prepareComputeSignature(CommonSignatureComputationData) and SamTransactionManager::prepareComputeSignature(CommonSignatureComputationData) methods.
Definition at line 89 of file CalypsoExtensionService.cpp.
std::shared_ptr< TraceableSignatureVerificationData > keyple::card::calypso::CalypsoExtensionService::createTraceableSignatureVerificationData | ( | ) | const |
Returns a new instance of TraceableSignatureVerificationData to use to define the parameters of the CardTransactionManager::prepareVerifySignature(CommonSignatureVerificationData) and SamTransactionManager::prepareVerifySignature(CommonSignatureVerificationData) methods.
Definition at line 103 of file CalypsoExtensionService.cpp.
|
override |
Definition at line 66 of file CalypsoExtensionService.cpp.
|
override |
Definition at line 71 of file CalypsoExtensionService.cpp.
|
static |
Returns the service instance.
Definition at line 52 of file CalypsoExtensionService.cpp.
|
override |
Definition at line 61 of file CalypsoExtensionService.cpp.