Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U > Class Template Reference

#include <CommonTransactionManagerAdapter.h>

Inheritance diagram for keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >:
Inheritance graph
[legend]
Collaboration diagram for keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >:
Collaboration graph
[legend]

Public Member Functions

 CommonTransactionManagerAdapter (std::shared_ptr< SmartCard > targetSmartCard, const std::shared_ptr< CommonSecuritySettingAdapter< U > > securitySetting, const std::vector< std::vector< uint8_t > > &transactionAuditData)
 
const std::vector< std::vector< uint8_t > > & getTransactionAuditData () const override
 
const std::vector< std::shared_ptr< ApduRequestSpi > > getApduRequests (const std::vector< std::shared_ptr< AbstractApduCommand > > &commands)
 
virtual void saveTransactionAuditData (const std::shared_ptr< CardRequestSpi > cardRequest, const std::shared_ptr< CardResponseApi > cardResponse)
 
const std::string getTransactionAuditDataAsString () const
 

Static Public Member Functions

static void saveTransactionAuditData (const std::shared_ptr< CardRequestSpi > cardRequest, const std::shared_ptr< CardResponseApi > cardResponse, std::vector< std::vector< uint8_t > > &transactionAuditData)
 

Public Attributes

const std::string MSG_SAM_READER_COMMUNICATION_ERROR
 
const std::string MSG_SAM_COMMUNICATION_ERROR
 
const std::string MSG_SAM_COMMAND_ERROR
 
const std::string MSG_WHILE_TRANSMITTING_COMMANDS
 

Detailed Description

template<typename T, typename S, typename U>
class keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >

(package-private)
Implementation of CommonTransactionManager.

Parameters
<T>The type of the lowest level child object.
<S>The type of the lowest level child object of the associated CommonSecuritySetting.
<U>(C++ only) The type of CommonSecuritySettingAdapter child object
Since
2.2.0

Definition at line 52 of file CommonTransactionManagerAdapter.h.

Constructor & Destructor Documentation

◆ CommonTransactionManagerAdapter()

template<typename T , typename S , typename U >
keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::CommonTransactionManagerAdapter ( std::shared_ptr< SmartCard >  targetSmartCard,
const std::shared_ptr< CommonSecuritySettingAdapter< U > >  securitySetting,
const std::vector< std::vector< uint8_t > > &  transactionAuditData 
)
inline

(package-private)
Creates a new instance.

Parameters
targetSmartCardThe target smartcard provided by the selection process.
securitySettingThe security settings (optional).
transactionAuditDataThe original transaction data to fill (optional).
Since
2.2.0

Definition at line 74 of file CommonTransactionManagerAdapter.h.

Member Function Documentation

◆ getApduRequests()

template<typename T , typename S , typename U >
const std::vector< std::shared_ptr< ApduRequestSpi > > keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::getApduRequests ( const std::vector< std::shared_ptr< AbstractApduCommand > > &  commands)
inline

(package-private)
Creates a list of ApduRequestSpi from a list of AbstractApduCommand.

Parameters
commandsThe list of commands.
Returns
An empty list if there is no command.
Since
2.2.0

Definition at line 101 of file CommonTransactionManagerAdapter.h.

◆ getTransactionAuditData()

template<typename T , typename S , typename U >
const std::vector< std::vector< uint8_t > > & keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::getTransactionAuditData ( ) const
inlineoverride
Since
2.2.0

Definition at line 87 of file CommonTransactionManagerAdapter.h.

◆ getTransactionAuditDataAsString()

template<typename T , typename S , typename U >
const std::string keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::getTransactionAuditDataAsString ( ) const
inline

(package-private)
Returns a string representation of the transaction audit data.

Returns
A not empty string.

Definition at line 170 of file CommonTransactionManagerAdapter.h.

◆ saveTransactionAuditData() [1/2]

template<typename T , typename S , typename U >
virtual void keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::saveTransactionAuditData ( const std::shared_ptr< CardRequestSpi >  cardRequest,
const std::shared_ptr< CardResponseApi >  cardResponse 
)
inlinevirtual

(package-private)
Saves the provided exchanged APDU commands in the list of transaction audit data.

Parameters
cardRequestThe card request.
cardResponseThe associated card response.
Since
2.1.1

Definition at line 121 of file CommonTransactionManagerAdapter.h.

◆ saveTransactionAuditData() [2/2]

template<typename T , typename S , typename U >
static void keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::saveTransactionAuditData ( const std::shared_ptr< CardRequestSpi >  cardRequest,
const std::shared_ptr< CardResponseApi >  cardResponse,
std::vector< std::vector< uint8_t > > &  transactionAuditData 
)
inlinestatic

(package-private)
Saves the provided exchanged APDU commands in the provided list of transaction audit data.

Parameters
cardRequestThe card request.
cardResponseThe associated card response.
transactionAuditDataThe list to complete.
Since
2.1.1

Definition at line 146 of file CommonTransactionManagerAdapter.h.

Member Data Documentation

◆ MSG_SAM_COMMAND_ERROR

template<typename T , typename S , typename U >
const std::string keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::MSG_SAM_COMMAND_ERROR
Initial value:
=
"A SAM command error occurred "

Definition at line 60 of file CommonTransactionManagerAdapter.h.

◆ MSG_SAM_COMMUNICATION_ERROR

template<typename T , typename S , typename U >
const std::string keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::MSG_SAM_COMMUNICATION_ERROR
Initial value:
=
"A communication error with the SAM occurred "

Definition at line 58 of file CommonTransactionManagerAdapter.h.

◆ MSG_SAM_READER_COMMUNICATION_ERROR

template<typename T , typename S , typename U >
const std::string keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::MSG_SAM_READER_COMMUNICATION_ERROR
Initial value:
=
"A communication error with the SAM reader occurred "

Definition at line 56 of file CommonTransactionManagerAdapter.h.

◆ MSG_WHILE_TRANSMITTING_COMMANDS

template<typename T , typename S , typename U >
const std::string keyple::card::calypso::CommonTransactionManagerAdapter< T, S, U >::MSG_WHILE_TRANSMITTING_COMMANDS
Initial value:
=
"while transmitting commands."

Definition at line 62 of file CommonTransactionManagerAdapter.h.


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