![]() |
Keyple Card Calypso C++ Library 2.2.2
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 int le) | |
const CalypsoSamCommand & | getCommandRef () const override |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message) const final |
const CalypsoApduCommandException | buildUnexpectedResponseLengthException (const std::string &message) const final |
AbstractSamCommand & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
void | checkStatus () override |
![]() | |
AbstractApduCommand (const CardCommand &commandRef, const int le) | |
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, |
const int | le | ||
) |
(package-private)
Constructor dedicated for the building of referenced Calypso commands
commandRef | a command reference from the Calypso command table. |
le | The value of the LE field. |
Definition at line 34 of file AbstractSamCommand.cpp.
|
finalvirtual |
(package-private)
Builds a specific APDU command exception.
message | The message. |
Implements keyple::card::calypso::AbstractApduCommand.
Definition at line 42 of file AbstractSamCommand.cpp.
|
finalvirtual |
(package-private)
Builds a specific APDU command exception for the case of an unexpected response length.
message | The message. |
Implements keyple::card::calypso::AbstractApduCommand.
Definition at line 67 of file AbstractSamCommand.cpp.
|
overridevirtual |
(package-private)
This method check the status word and if the length of the response is equal to the LE field in the request.
If status word is not referenced, then status is considered unsuccessful.
CalypsoApduCommandException | if status is not successful or if the length of the response is not equal to the LE field in the request. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Reimplemented in keyple::card::calypso::CmdSamDataCipher.
Definition at line 82 of file AbstractSamCommand.cpp.
|
overridevirtual |
(package-private)
Gets CardCommand the current command identification
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 37 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::CmdSamDataCipher, keyple::card::calypso::CmdSamDigestAuthenticate, keyple::card::calypso::CmdSamDigestClose, keyple::card::calypso::CmdSamDigestInit, keyple::card::calypso::CmdSamDigestUpdate, keyple::card::calypso::CmdSamDigestUpdateMultiple, keyple::card::calypso::CmdSamGetChallenge, keyple::card::calypso::CmdSamGiveRandom, keyple::card::calypso::CmdSamPsoComputeSignature, keyple::card::calypso::CmdSamPsoVerifySignature, keyple::card::calypso::CmdSamReadCeilings, keyple::card::calypso::CmdSamReadEventCounter, keyple::card::calypso::CmdSamReadKeyParameters, keyple::card::calypso::CmdSamSelectDiversifier, keyple::card::calypso::CmdSamSvCheck, keyple::card::calypso::CmdSamSvPrepareDebitOrUndebit, keyple::card::calypso::CmdSamSvPrepareLoad, keyple::card::calypso::CmdSamUnlock, and keyple::card::calypso::CmdSamWriteKey.
Definition at line 108 of file AbstractSamCommand.cpp.
|
overridevirtual |
(package-private)
Sets the command ApduResponseApi.
apduResponse | The APDU response. |
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Reimplemented in keyple::card::calypso::CmdSamDataCipher, keyple::card::calypso::CmdSamPsoComputeSignature, and keyple::card::calypso::CmdSamPsoVerifySignature.
Definition at line 76 of file AbstractSamCommand.cpp.
|
static |
(package-private)
Default SAM product type.
Definition at line 42 of file AbstractSamCommand.h.