Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <AbstractPoCommandBuilder.h>
Inherits keyple::core::command::AbstractIso7816CommandBuilder.
Inherited by keyple::calypso::command::po::builder::security::AbstractOpenSessionCmdBuild< T >.
Public Member Functions | |
AbstractPoCommandBuilder (std::shared_ptr< CalypsoPoCommand > commandRef, std::shared_ptr< ApduRequest > request) | |
virtual | ~AbstractPoCommandBuilder ()=default |
virtual std::shared_ptr< T > | createResponseParser (std::shared_ptr< ApduResponse > apduResponse)=0 |
virtual const std::shared_ptr< SeCommand > | getCommandRef () const override |
virtual bool | isSessionBufferUsed () const =0 |
![]() | |
AbstractIso7816CommandBuilder (const std::shared_ptr< SeCommand > commandReference, const std::shared_ptr< ApduRequest > request) | |
AbstractIso7816CommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request) | |
virtual | ~AbstractIso7816CommandBuilder ()=default |
![]() | |
AbstractApduCommandBuilder (const std::shared_ptr< SeCommand > commandRef, const std::shared_ptr< ApduRequest > request) | |
AbstractApduCommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request) | |
virtual | ~AbstractApduCommandBuilder ()=default |
virtual void | addSubName (const std::string &subName) |
virtual const std::string & | getName () const |
virtual const std::shared_ptr< ApduRequest > | getApduRequest () const |
Protected Attributes | |
const std::shared_ptr< Logger > | mLogger |
![]() | |
const std::shared_ptr< SeCommand > | mCommandRef |
std::shared_ptr< ApduRequest > | mRequest |
Additional Inherited Members | |
![]() | |
virtual std::shared_ptr< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn) |
virtual std::shared_ptr< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const uint8_t le) |
virtual std::shared_ptr< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn, const uint8_t le) |
Abstract class for all PO command builders.
|
inline |
Constructor dedicated for the building of referenced Calypso commands
commandRef | a command reference from the Calypso command table |
request | the ApduRequest (the instruction byte will be overwritten) |
|
virtualdefault |
|
pure virtual |
Create the response parser matching the builder
apduResponse | the response data from the SE |
Implemented in keyple::calypso::command::po::builder::WriteRecordCmdBuild, keyple::calypso::command::po::builder::UpdateRecordCmdBuild, keyple::calypso::command::po::builder::storedvalue::SvUndebitCmdBuild, keyple::calypso::command::po::builder::storedvalue::SvReloadCmdBuild, keyple::calypso::command::po::builder::storedvalue::SvGetCmdBuild, keyple::calypso::command::po::builder::storedvalue::SvDebitCmdBuild, keyple::calypso::command::po::builder::SelectFileCmdBuild, keyple::calypso::command::po::builder::security::VerifyPinCmdBuild, keyple::calypso::command::po::builder::security::RehabilitateCmdBuild, keyple::calypso::command::po::builder::security::PoGetChallengeCmdBuild, keyple::calypso::command::po::builder::security::OpenSession32CmdBuild, keyple::calypso::command::po::builder::security::OpenSession31CmdBuild, keyple::calypso::command::po::builder::security::OpenSession24CmdBuild, keyple::calypso::command::po::builder::security::OpenSession10CmdBuild, keyple::calypso::command::po::builder::security::InvalidateCmdBuild, keyple::calypso::command::po::builder::security::CloseSessionCmdBuild, keyple::calypso::command::po::builder::security::ChangeKeyCmdBuild, keyple::calypso::command::po::builder::ReadRecordsCmdBuild, keyple::calypso::command::po::builder::IncreaseCmdBuild, keyple::calypso::command::po::builder::GetDataTraceCmdBuild, keyple::calypso::command::po::builder::GetDataFciCmdBuild, keyple::calypso::command::po::builder::DecreaseCmdBuild, and keyple::calypso::command::po::builder::AppendRecordCmdBuild.
|
inlineoverridevirtual |
Return type should be std::shared_ptr<CalypsoPoCommand> ... but compiler complains about an invalid covariant return type
Reimplemented from keyple::core::command::AbstractApduCommandBuilder.
|
pure virtual |
Indicates if the session buffer is used when executing this command.
Allows the management of the overflow of this buffer.
|
protected |
common logger for all builders