#include <AbstractMatchingSe.h>
Inherits enable_shared_from_this< AbstractMatchingSe >.
Inherited by keyple::calypso::transaction::CalypsoPo, and keyple::calypso::transaction::CalypsoSam.
AbstractMatchingSe is the class to manage the elements of the result of a selection.
This class should be extended for the management of specific SE.
Nevertheless it gives access to the generic parameters common to all SEs which are the transmission mode, the FCI (response to select command) and the ATR (SE's answer to reset) when they are available.
◆ ~AbstractMatchingSe()
virtual keyple::core::selection::AbstractMatchingSe::~AbstractMatchingSe |
( |
| ) |
|
|
inlinevirtual |
◆ AbstractMatchingSe()
keyple::core::selection::AbstractMatchingSe::AbstractMatchingSe |
( |
const std::shared_ptr< SeResponse > |
selectionResponse, |
|
|
const TransmissionMode & |
transmissionMode |
|
) |
| |
Constructor
C++ vs. Java: constructor is protected in Java but prevents use of std::make_shared in C++.
- Parameters
-
selectionResponse | the response from the SE |
transmissionMode | the transmission mode, contact or contactless |
◆ getAtrBytes()
const std::vector< uint8_t > & keyple::core::selection::AbstractMatchingSe::getAtrBytes |
( |
| ) |
const |
- Returns
- the ATR
- Exceptions
-
IllegalStateException | if no ATR is available (see hasAtr) |
◆ getFciBytes()
const std::vector< uint8_t > & keyple::core::selection::AbstractMatchingSe::getFciBytes |
( |
| ) |
const |
- Returns
- the FCI
- Exceptions
-
IllegalStateException | if no FCI is available (see hasFci) |
◆ getTransmissionMode()
const TransmissionMode & keyple::core::selection::AbstractMatchingSe::getTransmissionMode |
( |
| ) |
const |
|
virtual |
◆ hasAtr()
bool keyple::core::selection::AbstractMatchingSe::hasAtr |
( |
| ) |
const |
- Returns
- true if the matching SE has an ATR
◆ hasFci()
bool keyple::core::selection::AbstractMatchingSe::hasFci |
( |
| ) |
const |
- Returns
- true if the matching SE has an FCI
◆ operator<< [1/2]
◆ operator<< [2/2]
The documentation for this class was generated from the following files: