![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CmdCardGetDataFci.h>
Public Member Functions | |
CmdCardGetDataFci (const CalypsoCardClass calypsoCardClass) | |
CmdCardGetDataFci () | |
bool | isSessionBufferUsed () const override |
CmdCardGetDataFci & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
bool | isValidCalypsoFCI () const |
const std::vector< uint8_t > & | getDfName () const |
const std::vector< uint8_t > & | getApplicationSerialNumber () const |
const std::vector< uint8_t > & | getDiscretionaryData () const |
bool | isDfInvalidated () const |
const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
AbstractCardCommand (const CalypsoCardCommand &commandRef) | |
const CalypsoCardCommand & | getCommandRef () const override |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final |
void | checkStatus () override |
![]() | |
AbstractApduCommand (const CardCommand &commandRef) | |
virtual void | addSubName (const std::string &subName) final |
virtual const std::string & | getName () const final |
virtual void | setApduRequest (const std::shared_ptr< ApduRequestAdapter > apduRequest) final |
virtual const std::shared_ptr< ApduRequestAdapter > | getApduRequest () const final |
virtual const std::shared_ptr< ApduResponseApi > | getApduResponse () const final |
virtual bool | isSuccessful () const final |
virtual const std::string | getStatusInformation () const final |
Additional Inherited Members | |
![]() | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE |
(package-private)
Builds the Get data APDU commands for the FCI tag.
In contact mode, this command can not be sent in a secure session because it would generate a 6Cxx status and thus make calculation of the digest impossible.
Definition at line 46 of file CmdCardGetDataFci.h.
keyple::card::calypso::CmdCardGetDataFci::CmdCardGetDataFci | ( | const CalypsoCardClass | calypsoCardClass | ) |
(package-private)
Instantiates a new CmdCardGetDataFci.
calypsoCardClass | indicates which CLA byte should be used for the Apdu. |
Definition at line 38 of file CmdCardGetDataFci.cpp.
keyple::card::calypso::CmdCardGetDataFci::CmdCardGetDataFci | ( | ) |
(package-private)
Empty constructor.
Definition at line 50 of file CmdCardGetDataFci.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardGetDataFci::getApplicationSerialNumber | ( | ) | const |
(package-private)
Gets the application serial number
Definition at line 156 of file CmdCardGetDataFci.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardGetDataFci::getDfName | ( | ) | const |
(package-private)
Gets the DF name
Definition at line 151 of file CmdCardGetDataFci.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardGetDataFci::getDiscretionaryData | ( | ) | const |
(package-private)
Gets the discretionary data
Definition at line 161 of file CmdCardGetDataFci.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 193 of file CmdCardGetDataFci.cpp.
bool keyple::card::calypso::CmdCardGetDataFci::isDfInvalidated | ( | ) | const |
(package-private)
Tells if the DF is invalidated
Definition at line 166 of file CmdCardGetDataFci.cpp.
|
overridevirtual |
(package-private)
Indicates if the session buffer is used when executing this command.Allows the management of the overflow of this buffer.
Implements keyple::card::calypso::AbstractCardCommand.
Definition at line 53 of file CmdCardGetDataFci.cpp.
bool keyple::card::calypso::CmdCardGetDataFci::isValidCalypsoFCI | ( | ) | const |
(package-private)
Tells if the FCI is valid
Definition at line 146 of file CmdCardGetDataFci.cpp.
|
overridevirtual |
(package-private)
Sets the command ApduResponseApi.
apduResponse | The APDU response. |
The expected FCI structure of a Calypso card 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 ApduResponseApi 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.
Reimplemented from keyple::card::calypso::AbstractCardCommand.
Definition at line 58 of file CmdCardGetDataFci.cpp.