AusweisApp2
Lade ...
Suche ...
Keine Treffer
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 QByteArray &pPasswordValue)
 Performs PACE and establishes a PACE channel.
 
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.
 
virtual CardReturnCode destroyPaceChannel ()
 Destroys a previously established PACE channel.
 
virtual void setProgressMessage (const QString &pMessage, int pProgress=-1)
 Sets the current workflow progress message.
 
virtual Q_INVOKABLE bool stopSecureMessaging ()
 Destroys an established secure messaging channel, if there is one.
 
virtual ResponseApduResult setEidPin (const QByteArray &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.
 
 ~CardConnectionWorker () override
 Destroys the CardConnection and disconnects from the card.
 

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.

◆ ~CardConnectionWorker()

CardConnectionWorker::~CardConnectionWorker ( )
overrideprotected

Destroys the CardConnection and disconnects from the card.

Dokumentation der Elementfunktionen

◆ create()

QSharedPointer< CardConnectionWorker > CardConnectionWorker::create ( Reader pReader)
static

◆ destroyPaceChannel()

CardReturnCode CardConnectionWorker::destroyPaceChannel ( )
virtual

Destroys a previously established PACE channel.

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

◆ establishPaceChannel() [1/2]

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

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

◆ establishPaceChannel() [2/2]

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.

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 QByteArray &  pNewPin,
quint8  pTimeoutSeconds 
)
virtual
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ 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 ( )

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

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