Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <SamSelectionRequest.h>
Public Member Functions | |
SamSelectionRequest (std::shared_ptr< SamSelector > samSelector) | |
const std::shared_ptr< AbstractMatchingSe > | parse (std::shared_ptr< SeResponse > seResponse) override |
![]() | |
AbstractSeSelectionRequest (std::shared_ptr< SeSelector > seSelector) | |
virtual | ~AbstractSeSelectionRequest ()=default |
virtual std::shared_ptr< SeRequest > | getSelectionRequest () |
virtual std::shared_ptr< SeSelector > | getSeSelector () |
void | addCommandBuilder (std::shared_ptr< AbstractSamCommandBuilder< AbstractSamResponseParser > > commandBuilder) |
const std::vector< std::shared_ptr< AbstractSamCommandBuilder< AbstractSamResponseParser > > > | getCommandBuilders () const |
Additional Inherited Members | |
![]() | |
const std::shared_ptr< SeSelector > | mSeSelector |
Specialized selection request to manage the specific characteristics of Calypso SAMs
Beyond the creation of a keyple::calypso::transaction::CalypsoSam object, this class also allows to execute a command to Unlock the SAM if unlockData are present in the keyple::calypso::transaction::SamSelector.
This unlock command is currently the only one allowed during the SAM selection process.
|
explicit |
Create a keyple::calypso::transaction::SamSelectionRequest
samSelector | the SAM selector |
|
overridevirtual |
Create a CalypsoSam object containing the selection data received from the plugin
If an Unlock command has been prepared, its status is checked.
seResponse | the SE response received |
CalypsoDesynchronizedExchangesException | if the APDU SAM exchanges are out of sync |
CalypsoSamCommandException | if the SAM has responded with an error status |
Return type should be std::shared_ptr<CalypsoSam> ... but invalid covariant return type