|
AusweisApp2
|
This class represents a connection to a smart card. Mehr ...
#include <CardConnectionWorker.h>
Signale | |
| void | fireReaderInfoChanged (const ReaderInfo &pReaderInfo) |
| void | fireSecureMessagingStopped () |
Öffentliche Methoden | |
| 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) const |
| ResponseApduResult | getChallenge () const |
| TerminalAndChipAuthenticationResult | performTAandCA (const CVCertificateChain &pTerminalCvcChain, const QByteArray &pAuxiliaryData, const QByteArray &pSignature, const QByteArray &pPin, const QByteArray &pEphemeralPublicKey) const |
Öffentliche, statische Methoden | |
| static QSharedPointer< CardConnectionWorker > | create (Reader *pReader) |
Geschützte Methoden | |
| CardConnectionWorker (Reader *pReader) | |
| The Card hold by the Reader is expected to be connected. Mehr ... | |
| ~CardConnectionWorker () override | |
| Destroys the CardConnection and disconnects from the card. Mehr ... | |
This class represents a connection to a smart card.
|
explicitprotected |
The Card hold by the Reader is expected to be connected.
The connection is closed, when the CardConnection is destroyed.
|
overrideprotected |
Destroys the CardConnection and disconnects from the card.
|
static |
|
virtual |
Destroys a previously established PACE channel.
|
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.
|
signal |
|
signal |
| ResponseApduResult CardConnectionWorker::getChallenge | ( | ) | const |
| ReaderInfo CardConnectionWorker::getReaderInfo | ( | ) | const |
| TerminalAndChipAuthenticationResult CardConnectionWorker::performTAandCA | ( | const CVCertificateChain & | pTerminalCvcChain, |
| const QByteArray & | pAuxiliaryData, | ||
| const QByteArray & | pSignature, | ||
| const QByteArray & | pPin, | ||
| const QByteArray & | pEphemeralPublicKey | ||
| ) | const |
| EstablishPaceChannelOutput CardConnectionWorker::prepareIdentification | ( | const QByteArray & | pChat | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
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.
| void CardConnectionWorker::setPukInoperative | ( | ) |
|
virtual |
|
virtual |