Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
Public Member Functions | List of all members
keyple::card::calypso::CmdSamDataCipher Class Referencefinal

#include <CmdSamDataCipher.h>

Inheritance diagram for keyple::card::calypso::CmdSamDataCipher:
Inheritance graph
[legend]
Collaboration diagram for keyple::card::calypso::CmdSamDataCipher:
Collaboration graph
[legend]

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
 
AbstractSamCommandsetApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override
 
void checkStatus () override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractSamCommand
 AbstractSamCommand (const CalypsoSamCommand &commandRef, const int le)
 
const CalypsoSamCommandgetCommandRef () 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
 
- Public Member Functions inherited from keyple::card::calypso::AbstractApduCommand
 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< ApduRequestAdaptergetApduRequest () 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 Public Attributes inherited from keyple::card::calypso::AbstractSamCommand
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE = initStatusTable()
 
- Static Public Attributes inherited from keyple::card::calypso::AbstractApduCommand
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE
 

Detailed Description

(package-private)
Builds the "Data Cipher" SAM command.

Since
2.2.0

Definition at line 38 of file CmdSamDataCipher.h.

Constructor & Destructor Documentation

◆ CmdSamDataCipher()

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.

Parameters
productTypeThe SAM product type.
signatureComputationDataThe signature computation data (optional).
signatureVerificationDataThe signature computation data (optional).
Since
2.2.0

Definition at line 73 of file CmdSamDataCipher.cpp.

Member Function Documentation

◆ checkStatus()

void keyple::card::calypso::CmdSamDataCipher::checkStatus ( )
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.

Exceptions
CalypsoApduCommandExceptionif status is not successful or if the length of the response is not equal to the LE field in the request.
Since
2.0.1
Since
2.0.1

Since
2.2.0

Reimplemented from keyple::card::calypso::AbstractSamCommand.

Definition at line 144 of file CmdSamDataCipher.cpp.

◆ getStatusTable()

const std::map< const int, const std::shared_ptr< StatusProperties > > & keyple::card::calypso::CmdSamDataCipher::getStatusTable ( ) const
overridevirtual

(package-private)
Returns the internal status table

Returns
A not null reference
Since
2.0.1
Since
2.0.1

Since
2.2.0

Reimplemented from keyple::card::calypso::AbstractSamCommand.

Definition at line 114 of file CmdSamDataCipher.cpp.

◆ setApduResponse()

AbstractSamCommand & keyple::card::calypso::CmdSamDataCipher::setApduResponse ( const std::shared_ptr< ApduResponseApi >  apduResponse)
overridevirtual

(package-private)
Sets the command ApduResponseApi.

Parameters
apduResponseThe APDU response.
Returns
The current instance.
Since
2.0.1
Since
2.0.1

Since
2.2.0

Reimplemented from keyple::card::calypso::AbstractSamCommand.

Definition at line 119 of file CmdSamDataCipher.cpp.


The documentation for this class was generated from the following files: