AusweisApp2
Lade ...
Suche ...
Keine Treffer
eid_applet_interface_mock.cpp-Dateireferenz
#include "eid_applet_interface_mock.h"
#include "MockSmartEidRestClient.h"
#include <QSharedPointer>
#include <cassert>
#include <iostream>
Include-Abhängigkeitsdiagramm für eid_applet_interface_mock.cpp:

Klassen

struct  Data
 

Funktionen

QSharedPointer< governikus::MockSmartEidRestClientmRestInterface (new governikus::MockSmartEidRestClient)
 
EidUpdateInfo getUpdateInfo ()
 
EidStatus getSmartEidStatus ()
 Provides the current Smart-eID Status. This function does not include an online-check.
 
EidServiceResult installSmartEid (const ProgressHandler &)
 
EidServiceResult deleteSmartEid (const ProgressHandler &)
 
GenericDataResult performAPDUCommand (const std::string &pCommandApdu)
 Performs APDU command.
 
GenericDataResult performPersonalization (const std::string &pCommandPersonalization)
 Performs personalization in a generic way controlled by Personalization Service.
 
InitializeResult initializePersonalization (const std::string &pChallenge, const std::string &pPin)
 Performs initialization of the Personalization.
 
EidServiceResult deletePersonalization ()
 Delete Personalization from eID Applet.
 

Variablen

struct Data mData
 

Dokumentation der Funktionen

◆ deletePersonalization()

EidServiceResult deletePersonalization ( )

Delete Personalization from eID Applet.

Rückgabe
EidServiceResult
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ deleteSmartEid()

EidServiceResult deleteSmartEid ( const ProgressHandler pHandler)

Performs remote deletion of the eID-applet in eSE on this device, or resets ATM module, keychain items and Secure Enclave elements.

Parameter
pHandlerfunction pointer of the implemented ProgressHandler function
Rückgabe
EidServiceResult
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ getSmartEidStatus()

EidStatus getSmartEidStatus ( )

Provides the current Smart-eID Status. This function does not include an online-check.

Rückgabe
The status of the Smart-eID e.g. EidStatus::NO_PERSONALIZATION for the eID-Applet.
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ getUpdateInfo()

EidUpdateInfo getUpdateInfo ( )

Provides information of available updates of the installed eID-Applet and/or CSP implementation or whether the device is supported by Trusted Service Management System. The function includes an online-check.

Rückgabe
The updateInfo of the Smart-eID e.g. EidUpdateInfo::UPDATE_AVAILABLE for the eID-Applet.
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ initializePersonalization()

InitializeResult initializePersonalization ( const std::string &  pChallenge,
const std::string &  pPin = "" 
)

Performs initialization of the Personalization.

Parameter
pChallengebase64 encoded challenge for key attestation.
pPinfrom AA2 validated 6 digit PIN, once the user entered the mobile-ID-PIN 2 times. It is only required for HW_KEYSTORE and will be ignored in all other cases.
Rückgabe
InitializeResult with base64 encoded public key and signed challenge
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

◆ installSmartEid()

EidServiceResult installSmartEid ( const ProgressHandler pHandler)

Performs the remote provisioning of the eID-applet from the Trusted Service Management System to the eSE on this device, or the ATM module initialization and the license check.

Parameter
pHandlerfunction pointer of the implemented ProgressHandler function
Rückgabe
EidServiceResult
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ mRestInterface()

QSharedPointer< governikus::MockSmartEidRestClient > mRestInterface ( new governikus::MockSmartEidRestClient  )
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ performAPDUCommand()

GenericDataResult performAPDUCommand ( const std::string &  pCommandApdu)

Performs APDU command.

Parameter
pCommandApdubyte2hex encoded APDU
Rückgabe
GenericDataResult with byte2hex encoded APDU response
Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

◆ performPersonalization()

GenericDataResult performPersonalization ( const std::string &  pCommand)

Performs personalization in a generic way controlled by Personalization Service.

Parameter
pCommandbyte2hex encoded Command e.g APDU for Android
Rückgabe
GenericDataResult with byte2hex encoded command response for the personalization step
Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

Variablen-Dokumentation

◆ mData

struct Data mData