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

#include <CmdSamDigestUpdate.h>

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

Public Member Functions

 CmdSamDigestUpdate (const CalypsoSam::ProductType productType, const bool encryptedSession, const std::vector< uint8_t > &digestData)
 
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractSamCommand
 AbstractSamCommand (const CalypsoSamCommand &commandRef)
 
const CalypsoSamCommandgetCommandRef () const override
 
const CalypsoApduCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final
 
AbstractSamCommandsetApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override
 
void checkStatus () override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractApduCommand
 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< 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 Digest Update APDU command.

This command have to be sent twice for each command executed during a session. First time for the command sent and second time for the answer received.

Since
2.0.1

Definition at line 41 of file CmdSamDigestUpdate.h.

Constructor & Destructor Documentation

◆ CmdSamDigestUpdate()

keyple::card::calypso::CmdSamDigestUpdate::CmdSamDigestUpdate ( const CalypsoSam::ProductType  productType,
const bool  encryptedSession,
const std::vector< uint8_t > &  digestData 
)

(package-private)
Instantiates a new CmdSamDigestUpdate.

Parameters
productTypeof the SAM.
encryptedSessionthe encrypted session flag, true if encrypted.
digestDataall bytes from command sent by the card or response from the command.
Exceptions
IllegalArgumentExceptionIf the digest data is null or has a length > 255
Since
2.0.1

Definition at line 38 of file CmdSamDigestUpdate.cpp.

Member Function Documentation

◆ getStatusTable()

const std::map< const int, const std::shared_ptr< StatusProperties > > & keyple::card::calypso::CmdSamDigestUpdate::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.0.1

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

Definition at line 84 of file CmdSamDigestUpdate.cpp.


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