![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CmdCardSvGet.h>
Public Member Functions | |
CmdCardSvGet (const CalypsoCardClass calypsoCardClass, const std::shared_ptr< CalypsoCard > calypsoCard, const SvOperation svOperation) | |
bool | isSessionBufferUsed () const override |
CmdCardSvGet & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
const std::vector< uint8_t > & | getSvGetCommandHeader () const |
uint8_t | getCurrentKVC () const |
int | getTransactionNumber () const |
const std::vector< uint8_t > & | getPreviousSignatureLo () const |
const std::vector< uint8_t > & | getChallengeOut () const |
int | getBalance () const |
const std::shared_ptr< SvLoadLogRecord > | getLoadLog () const |
const std::shared_ptr< SvDebitLogRecord > | getDebitLog () 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 SV Get command.
Definition at line 50 of file CmdCardSvGet.h.
keyple::card::calypso::CmdCardSvGet::CmdCardSvGet | ( | const CalypsoCardClass | calypsoCardClass, |
const std::shared_ptr< CalypsoCard > | calypsoCard, | ||
const SvOperation | svOperation | ||
) |
(package-private)
Instantiates a new CmdCardSvGet.
calypsoCardClass | the card class. |
calypsoCard | the Calypso card. |
svOperation | the desired SV operation. |
IllegalArgumentException | If the command is inconsistent |
Definition at line 44 of file CmdCardSvGet.cpp.
int keyple::card::calypso::CmdCardSvGet::getBalance | ( | ) | const |
(package-private)
Gets the current SV balance
Definition at line 147 of file CmdCardSvGet.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardSvGet::getChallengeOut | ( | ) | const |
(package-private)
Gets the new challenge value generated by the command
Definition at line 142 of file CmdCardSvGet.cpp.
uint8_t keyple::card::calypso::CmdCardSvGet::getCurrentKVC | ( | ) | const |
(package-private)
Gets the current SV KVC
Definition at line 127 of file CmdCardSvGet.cpp.
const std::shared_ptr< SvDebitLogRecord > keyple::card::calypso::CmdCardSvGet::getDebitLog | ( | ) | const |
(package-private)
Gets a SvDebitLogRecord containing the last debit record
May return null if the debit record is not available (load case for card rev < 3.2)
Definition at line 157 of file CmdCardSvGet.cpp.
const std::shared_ptr< SvLoadLogRecord > keyple::card::calypso::CmdCardSvGet::getLoadLog | ( | ) | const |
(package-private)
Gets a SvLoadLogRecord containing the load record
May return null if the load record is not available (debit/undebit case for card rev < 3.2)
Definition at line 152 of file CmdCardSvGet.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardSvGet::getPreviousSignatureLo | ( | ) | const |
(package-private)
Gets the SignatureLo value of the last SV transaction (reload, debit, undebit)
Definition at line 137 of file CmdCardSvGet.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 189 of file CmdCardSvGet.cpp.
const std::vector< uint8_t > & keyple::card::calypso::CmdCardSvGet::getSvGetCommandHeader | ( | ) | const |
(package-private)
Gets the command header used to build the prepared "load/debit/undebit" SAM commands
Definition at line 122 of file CmdCardSvGet.cpp.
int keyple::card::calypso::CmdCardSvGet::getTransactionNumber | ( | ) | const |
(package-private)
Gets the SV transaction number
Definition at line 132 of file CmdCardSvGet.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 72 of file CmdCardSvGet.cpp.
|
overridevirtual |
(package-private)
Sets the command ApduResponseApi.
apduResponse | The APDU response. |
Reimplemented from keyple::card::calypso::AbstractCardCommand.
Definition at line 77 of file CmdCardSvGet.cpp.