#include <ApduResponseApi.hpp>
|
virtual const std::vector< uint8_t > & | getApdu () const =0 |
|
virtual const std::vector< uint8_t > | getDataOut () const =0 |
|
virtual int | getStatusWord () const =0 |
|
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.
◆ 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
◆ operator<< [1/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const std::shared_ptr< ApduResponseApi > |
ara |
|
) |
| |
|
friend |
◆ operator<< [2/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const std::vector< std::shared_ptr< ApduResponseApi > > & |
aras |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: