#include <StubSecureElement.h>
◆ ~StubSecureElement()
virtual keyple::plugin::stub::StubSecureElement::~StubSecureElement |
( |
| ) |
|
|
inlinevirtual |
◆ addHexCommand()
void keyple::plugin::stub::StubSecureElement::addHexCommand |
( |
const std::string & |
command, |
|
|
const std::string & |
response |
|
) |
| |
|
virtual |
Add more simulated commands to the Stub SE
- Parameters
-
command | : hexadecimal command to react to |
response | : hexadecimal response to be sent in reaction to command |
◆ closePhysicalChannel()
void keyple::plugin::stub::StubSecureElement::closePhysicalChannel |
( |
| ) |
|
|
virtual |
◆ getATR()
virtual const std::vector<uint8_t>& keyple::plugin::stub::StubSecureElement::getATR |
( |
| ) |
|
|
pure virtual |
Getter for ATR
- Returns
- Secured Element ATR
◆ getSeProcotol()
virtual std::string keyple::plugin::stub::StubSecureElement::getSeProcotol |
( |
| ) |
|
|
pure virtual |
- Returns
- SE protocol supported by the SE
◆ isPhysicalChannelOpen()
bool keyple::plugin::stub::StubSecureElement::isPhysicalChannelOpen |
( |
| ) |
|
|
virtual |
◆ openPhysicalChannel()
void keyple::plugin::stub::StubSecureElement::openPhysicalChannel |
( |
| ) |
|
|
virtual |
◆ processApdu()
std::vector< uint8_t > keyple::plugin::stub::StubSecureElement::processApdu |
( |
const std::vector< uint8_t > & |
apduIn | ) |
|
|
virtual |
Return APDU Response to APDU Request
- Parameters
-
apduIn | : commands to be processed |
- Returns
- APDU response
- Exceptions
-
KeypleReaderIOException | if the communication with the reader or the SE has failed |
◆ removeHexCommand()
void keyple::plugin::stub::StubSecureElement::removeHexCommand |
( |
const std::string & |
command | ) |
|
|
virtual |
Remove simulated commands from the Stub SE
- Parameters
-
command | : hexadecimal command to be removed |
◆ operator<< [1/2]
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const std::shared_ptr< StubSecureElement > & |
s |
|
) |
| |
|
friend |
◆ operator<< [2/2]
◆ mHexCommands
std::unordered_map<std::string, std::string> keyple::plugin::stub::StubSecureElement::mHexCommands |
◆ mIsPhysicalChannelOpen
bool keyple::plugin::stub::StubSecureElement::mIsPhysicalChannelOpen = false |
The documentation for this class was generated from the following files: