AusweisApp2
governikus::CardConnectionWorker Klassenreferenz

This class represents a connection to a smart card. Mehr ...

#include <CardConnectionWorker.h>

Klassendiagramm für governikus::CardConnectionWorker:

Signale

void fireReaderInfoChanged (const ReaderInfo &pReaderInfo)
 

Öffentliche Methoden

Q_INVOKABLE ReaderInfo getReaderInfo () const
 
void setPukInoperative ()
 
virtual CardReturnCode updateRetryCounter ()
 
virtual CardReturnCode readFile (const FileRef &pFileRef, QByteArray &pFileContent)
 
virtual ResponseApduResult transmit (const CommandApdu &pCommandApdu)
 
virtual EstablishPaceChannelOutput establishPaceChannel (PacePasswordId pPasswordId, const QString &pPasswordValue)
 Performs PACE and establishes a PACE channel. Mehr ...
 
virtual EstablishPaceChannelOutput establishPaceChannel (PacePasswordId pPasswordId, const QString &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 setProgressMessage (const QString &pMessage)
 Sets the current workflow progress message. Mehr ...
 
virtual Q_INVOKABLE bool stopSecureMessaging ()
 Destroys an established secure messaging channel, if there is one. Mehr ...
 
virtual ResponseApduResult setEidPin (const QString &pNewPin, quint8 pTimeoutSeconds)
 

Öffentliche, statische Methoden

static QSharedPointer< CardConnectionWorkercreate (Reader *pReader)
 

Geschützte Methoden

 CardConnectionWorker (Reader *pReader)
 The Card hold by the Reader is expected to be connected. Mehr ...
 
virtual ~CardConnectionWorker ()
 Destroys the CardConnection and disconnects from the card. Mehr ...
 

Ausführliche Beschreibung

This class represents a connection to a smart card.

Beschreibung der Konstruktoren und Destruktoren

◆ 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.

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ ~CardConnectionWorker()

CardConnectionWorker::~CardConnectionWorker ( )
protectedvirtual

Destroys the CardConnection and disconnects from the card.

Dokumentation der Elementfunktionen

◆ create()

QSharedPointer< CardConnectionWorker > CardConnectionWorker::create ( Reader pReader)
static
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ destroyPaceChannel()

CardReturnCode CardConnectionWorker::destroyPaceChannel ( )
virtual

Destroys a previously established PACE channel.

Erneute Implementation in governikus::MockCardConnectionWorker.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ establishPaceChannel() [1/2]

EstablishPaceChannelOutput CardConnectionWorker::establishPaceChannel ( PacePasswordId  pPasswordId,
const QString &  pPasswordValue 
)
virtual

Performs PACE and establishes a PACE channel.

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.

◆ establishPaceChannel() [2/2]

EstablishPaceChannelOutput CardConnectionWorker::establishPaceChannel ( PacePasswordId  pPasswordId,
const QString &  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.

Erneute Implementation in governikus::MockCardConnectionWorker.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ fireReaderInfoChanged

void governikus::CardConnectionWorker::fireReaderInfoChanged ( const ReaderInfo pReaderInfo)
signal
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ getReaderInfo()

ReaderInfo CardConnectionWorker::getReaderInfo ( ) const
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ readFile()

CardReturnCode CardConnectionWorker::readFile ( const FileRef pFileRef,
QByteArray &  pFileContent 
)
virtual
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ setEidPin()

ResponseApduResult CardConnectionWorker::setEidPin ( const QString &  pNewPin,
quint8  pTimeoutSeconds 
)
virtual

Erneute Implementation in governikus::MockCardConnectionWorker.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ setProgressMessage()

void CardConnectionWorker::setProgressMessage ( const QString &  pMessage)
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 ( )

◆ stopSecureMessaging()

bool CardConnectionWorker::stopSecureMessaging ( )
virtual

Destroys an established secure messaging channel, if there is one.

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ transmit()

ResponseApduResult CardConnectionWorker::transmit ( const CommandApdu pCommandApdu)
virtual

Erneute Implementation in governikus::MockCardConnectionWorker.

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ updateRetryCounter()

CardReturnCode CardConnectionWorker::updateRetryCounter ( )
virtual

Erneute Implementation in governikus::MockCardConnectionWorker.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien: