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

#include <ApduResponseApi.hpp>

Public Member Functions

virtual const std::vector< uint8_t > & getApdu () const =0
 
virtual const std::vector< uint8_t > getDataOut () const =0
 
virtual int getStatusWord () const =0
 

Friends

std::ostream & operator<< (std::ostream &os, const std::shared_ptr< ApduResponseApi > ara)
 
std::ostream & operator<< (std::ostream &os, const std::vector< std::shared_ptr< ApduResponseApi > > &aras)
 

Detailed Description

Data received in response to an APDU command.

Consists in a data part of variable length and a status word (SW1SW2).

See also
keypop::card::spi::ApduRequestSpi
Since
1.0.0

Definition at line 28 of file ApduResponseApi.hpp.

Member Function Documentation

◆ getApdu()

virtual const std::vector< uint8_t > & keypop::card::ApduResponseApi::getApdu ( ) const
pure virtual

Gets the raw data received from the card (including the status word).

Returns
An array of at least 2 bytes.
Since
1.0.0

◆ getDataOut()

virtual const std::vector< uint8_t > keypop::card::ApduResponseApi::getDataOut ( ) const
pure virtual

Gets the data part of the response received from the card (excluding the status word).

Returns
A not null byte array.
Since
1.0.0

◆ getStatusWord()

virtual int keypop::card::ApduResponseApi::getStatusWord ( ) const
pure virtual

Gets the status word of the APDU as an int.

Returns
An integer between 0000h and FFFFh.
Since
1.0.0

Friends And Related Function Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream &  os,
const std::shared_ptr< ApduResponseApi ara 
)
friend

Definition at line 57 of file ApduResponseApi.hpp.

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream &  os,
const std::vector< std::shared_ptr< ApduResponseApi > > &  aras 
)
friend

Definition at line 70 of file ApduResponseApi.hpp.


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