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

#include <CalypsoCardUtilAdapter.h>

Static Public Member Functions

static void updateCalypsoCard (std::shared_ptr< CalypsoCardAdapter > calypsoCard, const std::shared_ptr< AbstractCardCommand > command, const std::shared_ptr< ApduResponseApi > apduResponse, const bool isSessionOpen)
 
static void updateCalypsoCard (std::shared_ptr< CalypsoCardAdapter > calypsoCard, const std::vector< std::shared_ptr< AbstractCardCommand > > &commands, const std::vector< std::shared_ptr< ApduResponseApi > > &apduResponses, const bool isSessionOpen)
 

Detailed Description

(package-private)
Helper class used to update the CalypsoCard with the responses received from the card.

Since
2.0.0

Definition at line 56 of file CalypsoCardUtilAdapter.h.

Member Function Documentation

◆ updateCalypsoCard() [1/2]

void keyple::card::calypso::CalypsoCardUtilAdapter::updateCalypsoCard ( std::shared_ptr< CalypsoCardAdapter calypsoCard,
const std::shared_ptr< AbstractCardCommand command,
const std::shared_ptr< ApduResponseApi >  apduResponse,
const bool  isSessionOpen 
)
static

(package-private)
Fills the CalypsoCard with the card's response to a single command

Parameters
calypsoCardthe CalypsoCardAdapter object to fill with the provided response from the card.
commandthe command that get the response.
apduResponsethe APDU response returned by the card to the command.
isSessionOpentrue when a secure session is open.
Exceptions
CardCommandExceptionif a response from the card was unexpected
Since
2.0.0

Definition at line 40 of file CalypsoCardUtilAdapter.cpp.

◆ updateCalypsoCard() [2/2]

void keyple::card::calypso::CalypsoCardUtilAdapter::updateCalypsoCard ( std::shared_ptr< CalypsoCardAdapter calypsoCard,
const std::vector< std::shared_ptr< AbstractCardCommand > > &  commands,
const std::vector< std::shared_ptr< ApduResponseApi > > &  apduResponses,
const bool  isSessionOpen 
)
static

(package-private)
Fills the CalypsoCard with the card's responses to a list of commands

Parameters
calypsoCardthe CalypsoCardAdapter object to fill with the provided response from the card
commandsthe list of commands that get the responses.
apduResponsesthe APDU responses returned by the card to all commands.
isSessionOpentrue when a secure session is open.
Exceptions
CardCommandExceptionif a response from the card was unexpected
Since
2.0.0

Definition at line 165 of file CalypsoCardUtilAdapter.cpp.


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