This class represents a connection to a smart card.
Mehr ...
#include <CardConnectionWorker.h>
|
Q_INVOKABLE ReaderInfo | getReaderInfo () const |
|
void | setPukInoperative () |
|
virtual CardReturnCode | updateRetryCounter () |
|
virtual CardReturnCode | readFile (const FileRef &pFileRef, QByteArray &pFileContent, int pLe=CommandApdu::SHORT_MAX_LE) |
|
virtual ResponseApduResult | transmit (const CommandApdu &pCommandApdu) |
|
virtual EstablishPaceChannelOutput | establishPaceChannel (PacePasswordId pPasswordId, const QByteArray &pPasswordValue, const QByteArray &pChat, const QByteArray &pCertificateDescription) |
| Performs PACE and establishes a PACE channel for later terminal authentication. Mehr ...
|
|
virtual CardReturnCode | destroyPaceChannel () |
| Destroys a previously established PACE channel. Mehr ...
|
|
virtual void | setKeepAlive (bool pEnabled) |
|
virtual void | setProgressMessage (const QString &pMessage, int pProgress=-1) |
| Sets the current workflow progress message. Mehr ...
|
|
virtual ResponseApduResult | setEidPin (const QByteArray &pNewPin, quint8 pTimeoutSeconds) |
|
EstablishPaceChannelOutput | prepareIdentification (const QByteArray &pChat) |
|
ResponseApduResult | getChallenge () |
|
TerminalAndChipAuthenticationResult | performTAandCA (const CVCertificateChain &pTerminalCvcChain, const QByteArray &pAuxiliaryData, const QByteArray &pSignature, const QByteArray &pPin, const QByteArray &pEphemeralPublicKey) |
|
This class represents a connection to a smart card.
◆ CardConnectionWorker()
CardConnectionWorker::CardConnectionWorker |
( |
Reader * |
pReader | ) |
|
|
explicitprotected |
The Card hold by the Reader is expected to be connected.
The connection is closed, when the CardConnection is destroyed.
◆ ~CardConnectionWorker()
CardConnectionWorker::~CardConnectionWorker |
( |
| ) |
|
|
overrideprotected |
◆ create()
◆ destroyPaceChannel()
CardReturnCode CardConnectionWorker::destroyPaceChannel |
( |
| ) |
|
|
virtual |
Destroys a previously established PACE channel.
◆ establishPaceChannel()
EstablishPaceChannelOutput CardConnectionWorker::establishPaceChannel |
( |
PacePasswordId |
pPasswordId, |
|
|
const QByteArray & |
pPasswordValue, |
|
|
const QByteArray & |
pChat, |
|
|
const QByteArray & |
pCertificateDescription |
|
) |
| |
|
virtual |
Performs PACE and establishes a PACE channel for later terminal authentication.
If the Reader is a basic reader and the PACE channel is successfully established, the subsequent transmits will be secured using, secure messaging. I. e., a secure messaging channel is established.
◆ fireReaderInfoChanged
void governikus::CardConnectionWorker::fireReaderInfoChanged |
( |
const ReaderInfo & |
pReaderInfo | ) |
|
|
signal |
◆ fireSecureMessagingStopped
void governikus::CardConnectionWorker::fireSecureMessagingStopped |
( |
| ) |
|
|
signal |
◆ getChallenge()
◆ getReaderInfo()
ReaderInfo CardConnectionWorker::getReaderInfo |
( |
| ) |
const |
◆ performTAandCA()
◆ prepareIdentification()
◆ readFile()
CardReturnCode CardConnectionWorker::readFile |
( |
const FileRef & |
pFileRef, |
|
|
QByteArray & |
pFileContent, |
|
|
int |
pLe = CommandApdu::SHORT_MAX_LE |
|
) |
| |
|
virtual |
◆ setEidPin()
◆ setKeepAlive()
void CardConnectionWorker::setKeepAlive |
( |
bool |
pEnabled | ) |
|
|
virtual |
◆ setProgressMessage()
void CardConnectionWorker::setProgressMessage |
( |
const QString & |
pMessage, |
|
|
int |
pProgress = -1 |
|
) |
| |
|
virtual |
Sets the current workflow progress message.
This is necessary for platforms like iOS, where interacting with a card leads to a dialog where the message needs to be updated.
◆ setPukInoperative()
void CardConnectionWorker::setPukInoperative |
( |
| ) |
|
◆ transmit()
◆ updateRetryCounter()
CardReturnCode CardConnectionWorker::updateRetryCounter |
( |
| ) |
|
|
virtual |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: