![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <AbstractSamCommand.h>
Public Member Functions | |
const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
AbstractSamCommand (const CalypsoSamCommand &commandRef) | |
const CalypsoSamCommand & | getCommandRef () const override |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final |
AbstractSamCommand & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
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 |
Static Public Attributes | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE = initStatusTable() |
![]() | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE |
(package-private)
Superclass for all SAM command.
Definition at line 34 of file AbstractSamCommand.h.
keyple::card::calypso::AbstractSamCommand::AbstractSamCommand | ( | const CalypsoSamCommand & | commandRef | ) |
(package-private)
Constructor dedicated for the building of referenced Calypso commands
commandRef | a command reference from the Calypso command table. |
Definition at line 33 of file AbstractSamCommand.cpp.
|
finalvirtual |
(package-private)
Builds a command exception.This method should be override in subclasses in order to create specific exceptions.
exceptionClass | the exception class. |
message | the message. |
commandRef | CardCommand the command reference. |
statusWord | the status word. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 41 of file AbstractSamCommand.cpp.
|
overridevirtual |
(package-private)
This method check the status word.
If status word is not referenced, then status is considered unsuccessful.
CalypsoApduCommandException | if status is not successful. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 76 of file AbstractSamCommand.cpp.
|
overridevirtual |
(package-private)
Gets CardCommand the current command identification
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 36 of file AbstractSamCommand.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Reimplemented in keyple::card::calypso::CmdSamCardCipherPin, keyple::card::calypso::CmdSamCardGenerateKey, keyple::card::calypso::CmdSamDigestAuthenticate, keyple::card::calypso::CmdSamDigestClose, keyple::card::calypso::CmdSamDigestInit, keyple::card::calypso::CmdSamDigestUpdate, keyple::card::calypso::CmdSamGetChallenge, keyple::card::calypso::CmdSamGiveRandom, keyple::card::calypso::CmdSamSelectDiversifier, keyple::card::calypso::CmdSamSvCheck, keyple::card::calypso::CmdSamSvPrepareDebit, keyple::card::calypso::CmdSamSvPrepareLoad, keyple::card::calypso::CmdSamSvPrepareUndebit, and keyple::card::calypso::CmdSamUnlock.
Definition at line 102 of file AbstractSamCommand.cpp.
|
overridevirtual |
(package-private)
Sets the command ApduResponseApi.
apduResponse | The APDU response. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 70 of file AbstractSamCommand.cpp.
|
static |
(package-private)
Default SAM product type.
Definition at line 42 of file AbstractSamCommand.h.