Keypop Card C++ API - 2.0.1
Component of the Keypop C++ API
keypop::card::spi::ApduRequestSpi Class Referenceabstract

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

#include <keypop/card/spi/ApduRequestSpi.hpp>

Public Member Functions

virtual ~ApduRequestSpi ()=default
 Virtual destructor. More...
 
virtual const std::vector< std::uint8_t > & getApdu () const =0
 Gets the APDU bytes to be sent to the card. More...
 
virtual void setApdu (const std::vector< std::uint8_t > &apdu)=0
 C++. More...
 
virtual const std::vector< int > & getSuccessfulStatusWords () const =0
 Gets the list of status words that must be considered successful for the APDU. More...
 
virtual const std::string & getInfo () const =0
 Gets the information about this APDU request (e.g. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const 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 > > &arss)
 

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 31 of file ApduRequestSpi.hpp.

Constructor & Destructor Documentation

◆ ~ApduRequestSpi()

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

Virtual destructor.

Member Function Documentation

◆ getApdu()

virtual const std::vector< std::uint8_t > & keypop::card::spi::ApduRequestSpi::getApdu ( ) const
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

◆ setApdu()

virtual void keypop::card::spi::ApduRequestSpi::setApdu ( const std::vector< std::uint8_t > &  apdu)
pure virtual

C++.

Friends And Related Function Documentation

◆ operator<< [1/3]

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

Definition at line 73 of file ApduRequestSpi.hpp.

◆ operator<< [2/3]

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

Definition at line 104 of file ApduRequestSpi.hpp.

◆ operator<< [3/3]

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

Definition at line 114 of file ApduRequestSpi.hpp.


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