![]() |
Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
|
#include <CmdSamDataCipher.h>
Public Member Functions | |
CmdSamDataCipher (const CalypsoSam::ProductType productType, const std::shared_ptr< BasicSignatureComputationDataAdapter > signatureComputationData, const std::shared_ptr< BasicSignatureVerificationDataAdapter > signatureVerificationData) | |
const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
AbstractSamCommand & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
void | checkStatus () 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 |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
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)
Builds the "Data Cipher" SAM command.
Definition at line 38 of file CmdSamDataCipher.h.
keyple::card::calypso::CmdSamDataCipher::CmdSamDataCipher | ( | const CalypsoSam::ProductType | productType, |
const std::shared_ptr< BasicSignatureComputationDataAdapter > | signatureComputationData, | ||
const std::shared_ptr< BasicSignatureVerificationDataAdapter > | signatureVerificationData | ||
) |
(package-private)
Builds a new instance based on the provided data.
productType | The SAM product type. |
signatureComputationData | The signature computation data (optional). |
signatureVerificationData | The signature computation data (optional). |
Definition at line 73 of file CmdSamDataCipher.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::AbstractSamCommand.
Definition at line 144 of file CmdSamDataCipher.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractSamCommand.
Definition at line 114 of file CmdSamDataCipher.cpp.
|
overridevirtual |
(package-private)
Sets the command ApduResponseApi.
apduResponse | The APDU response. |
Reimplemented from keyple::card::calypso::AbstractSamCommand.
Definition at line 119 of file CmdSamDataCipher.cpp.