AusweisApp2
|
#include "eid_applet_interface_mock.h"
#include "MockSmartEidRestClient.h"
#include <QSharedPointer>
#include <cassert>
#include <iostream>
Klassen | |
struct | Data |
Funktionen | |
QSharedPointer< governikus::MockSmartEidRestClient > | mRestInterface (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 |
EidServiceResult deletePersonalization | ( | ) |
Delete Personalization from eID Applet.
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.
pHandler | function pointer of the implemented ProgressHandler function |
EidStatus getSmartEidStatus | ( | ) |
Provides the current Smart-eID Status. This function does not include an online-check.
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.
InitializeResult initializePersonalization | ( | const std::string & | pChallenge, |
const std::string & | pPin = "" |
||
) |
Performs initialization of the Personalization.
pChallenge | base64 encoded challenge for key attestation. |
pPin | from 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. |
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.
pHandler | function pointer of the implemented ProgressHandler function |
QSharedPointer< governikus::MockSmartEidRestClient > mRestInterface | ( | new governikus::MockSmartEidRestClient | ) |
GenericDataResult performAPDUCommand | ( | const std::string & | pCommandApdu | ) |
Performs APDU command.
pCommandApdu | byte2hex encoded APDU |
GenericDataResult performPersonalization | ( | const std::string & | pCommand | ) |
Performs personalization in a generic way controlled by Personalization Service.
pCommand | byte2hex encoded Command e.g APDU for Android |
struct Data mData |