Keypop Card C++ API 2.0.0
Reference Card API for C++
Public Member Functions | Friends | List of all members
keypop::card::spi::ApduRequestSpi Class Referenceabstract

#include <ApduRequestSpi.hpp>

Public Member Functions

virtual ~ApduRequestSpi ()=default
 
virtual std::vector< uint8_t > & getApdu ()=0
 
virtual const std::vector< int > & getSuccessfulStatusWords () const =0
 
virtual const std::string & getInfo () const =0
 

Friends

std::ostream & operator<< (std::ostream &os, ApduRequestSpi &ars)
 
std::ostream & operator<< (std::ostream &os, const std::shared_ptr< ApduRequestSpi > ars)
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::shared_ptr< ApduRequestSpi > > &ars)
 

Detailed Description

Data to build a single APDU command to be sent to a card.

See also
org.calypsonet.terminal.card.ApduResponseApi
Since
1.0.0

Definition at line 28 of file ApduRequestSpi.hpp.

Constructor & Destructor Documentation

◆ ~ApduRequestSpi()

virtual keypop::card::spi::ApduRequestSpi::~ApduRequestSpi ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ getApdu()

virtual std::vector< uint8_t > & keypop::card::spi::ApduRequestSpi::getApdu ( )
pure virtual

Gets the APDU bytes to be sent to the card.

Returns
A array of at least 4 bytes.
Since
1.0.0

◆ getInfo()

virtual const std::string & keypop::card::spi::ApduRequestSpi::getInfo ( ) const
pure virtual

Gets the information about this APDU request (e.g. command name).

These information are intended to improve the logging.

Returns
Null if no information has been defined.
Since
1.0.0

◆ getSuccessfulStatusWords()

virtual const std::vector< int > & keypop::card::spi::ApduRequestSpi::getSuccessfulStatusWords ( ) const
pure virtual

Gets the list of status words that must be considered successful for the APDU.

Returns
A set of integer values containing at least 9000h.
Since
1.0.0

Friends And Related Function Documentation

◆ operator<< [1/3]

std::ostream & operator<< ( std::ostream &  os,
ApduRequestSpi ars 
)
friend

Definition at line 64 of file ApduRequestSpi.hpp.

◆ operator<< [2/3]

std::ostream & operator<< ( std::ostream &  os,
const std::shared_ptr< ApduRequestSpi ars 
)
friend

Definition at line 77 of file ApduRequestSpi.hpp.

◆ operator<< [3/3]

std::ostream & operator<< ( std::ostream &  os,
const std::vector< std::shared_ptr< ApduRequestSpi > > &  ars 
)
friend

Definition at line 91 of file ApduRequestSpi.hpp.


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