21#include "BerTlvUtil.h"
22#include "IllegalStateException.h"
23#include "KeypleAssert.h"
29using namespace keyple::core::util;
30using namespace keyple::core::util::cpp::exception;
33const int CmdCardGetDataFcp::TAG_PROPRIETARY_INFORMATION = 0x85;
34const std::map<const int, const std::shared_ptr<StatusProperties>>
35 CmdCardGetDataFcp::STATUS_TABLE = initStatusTable();
40 buildCommand(calypsoCard->getCardClass());
46 buildCommand(calypsoCardClass);
53 std::make_shared<ApduRequestAdapter>(
54 ApduUtil::build(calypsoCardClass.
getValue(),
73const std::map<const int, const std::shared_ptr<StatusProperties>>
74 CmdCardGetDataFcp::initStatusTable()
76 std::map<const int, const std::shared_ptr<StatusProperties>> m =
80 std::make_shared<StatusProperties>(
"Data object not found (optional mode not " \
84 std::make_shared<StatusProperties>(
"File not found.",
85 typeid(CardDataAccessException))});
87 std::make_shared<StatusProperties>(
"P1 or P2 value not supported.",
88 typeid(CardDataAccessException))});
93const std::map<const int, const std::shared_ptr<StatusProperties>>&
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE
virtual void setApduRequest(const std::shared_ptr< ApduRequestAdapter > apduRequest) final
void parseApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
std::shared_ptr< CalypsoCardAdapter > getCalypsoCard() const
static const CalypsoCardCommand GET_DATA
uint8_t getInstructionByte() const
bool isSessionBufferUsed() const override
void parseApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
CmdCardGetDataFcp(const std::shared_ptr< CalypsoCardAdapter > calypsoCard)
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
static void parseProprietaryInformation(const std::vector< uint8_t > &dataOut, const std::shared_ptr< CalypsoCardAdapter > calypsoCard)