Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <GetDataFciRespPars.h>
Inherits keyple::calypso::command::po::AbstractPoResponseParser.
Protected Member Functions | |
const std::map< int, std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
const KeypleSeCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const std::shared_ptr< SeCommand > commandRef, const int statusCode) const override |
![]() | |
virtual const std::shared_ptr< SeCommand > | getCommandRef () const |
Protected Attributes | |
const std::shared_ptr< Logger > | logger |
![]() | |
std::shared_ptr< ApduResponse > | mResponse |
AbstractApduCommandBuilder * | mBuilder |
Additional Inherited Members | |
![]() | |
static const std::map< int, std::shared_ptr< StatusProperties > > | STATUS_TABLE |
Extracts information from the FCI data returned is response to the selection application command.
Provides getter methods for all relevant information.
keyple::calypso::command::po::parser::GetDataFciRespPars::GetDataFciRespPars | ( | std::shared_ptr< ApduResponse > | response, |
GetDataFciCmdBuild * | builder | ||
) |
Instantiates a new GetDataFciRespPars from the ApduResponse to a selection application command.
The expected FCI structure of a Calypso PO follows this scheme: T=6F L=XX (C) FCI Template T=84 L=XX (P) DF Name T=A5 L=22 (C) FCI Proprietary Template T=BF0C L=19 (C) FCI Issuer Discretionary Data T=C7 L=8 (P) Application Serial Number T=53 L=7 (P) Discretionary Data (Startup Information)
The ApduResponse provided in argument is parsed according to the above expected structure.
DF Name, Application Serial Number and Startup Information are extracted.
The 7-byte startup information field is also split into 7 private field made available through dedicated getter methods.
All fields are pre-initialized to handle the case where the parsing fails.
response | the select application response from Get Data APDU command |
builder | the reference to the builder that created this parser |
const std::vector< uint8_t > & keyple::calypso::command::po::parser::GetDataFciRespPars::getApplicationSerialNumber | ( | ) | const |
const std::vector< uint8_t > & keyple::calypso::command::po::parser::GetDataFciRespPars::getDfName | ( | ) | const |
const std::vector< uint8_t > & keyple::calypso::command::po::parser::GetDataFciRespPars::getDiscretionaryData | ( | ) | const |
|
overrideprotectedvirtual |
Reimplemented from keyple::core::command::AbstractApduResponseParser.
bool keyple::calypso::command::po::parser::GetDataFciRespPars::isDfInvalidated | ( | ) | const |
bool keyple::calypso::command::po::parser::GetDataFciRespPars::isValidCalypsoFCI | ( | ) | const |
|
protected |