AusweisApp
 
Lade ...
Suche ...
Keine Treffer
CardReturnCode.h
gehe zur Dokumentation dieser Datei
1
4
5#pragma once
6
7#include "EnumHelper.h"
8#include "GlobalStatus.h"
9
10
11namespace governikus
12{
13
16 OK,
17 OK_PUK,
18 OK_CAN,
19 RESPONSE_EMPTY,
20 CARD_NOT_FOUND,
21 UNKNOWN,
22 INPUT_TIME_OUT,
23 INVALID_CAN,
24 INVALID_PASSWORD,
25 INVALID_PIN,
26 INVALID_PIN_2,
27 INVALID_PIN_3,
28 INVALID_PUK,
29 COMMAND_FAILED,
30 CANCELLATION_BY_USER,
31 NEW_PIN_MISMATCH,
32 NEW_PIN_INVALID_LENGTH,
33 PIN_BLOCKED,
34 PIN_NOT_BLOCKED,
35 PUK_INOPERATIVE,
38 UNEXPECTED_TRANSMIT_STATUS)
39
40
41class CardReturnCodeUtil
42{
43 private:
44 CardReturnCodeUtil() = default;
45
46 public:
47 static GlobalStatus toGlobalStatus(CardReturnCode pCode);
48 static bool equalsWrongPacePassword(CardReturnCode pCode);
49};
50
51} // namespace governikus
#define defineEnumTypeQmlExposed(enumName,...)
Definition EnumHelper.h:88
Definition GlobalStatus.h:19
Defines the AccessRight and AccessRole enum.
Definition CommandApdu.h:17
UNKNOWN
Definition ResponseApdu.h:66
UNDEFINED
Definition SecurityProtocol.h:22
WRONG_LENGTH
Definition ResponseApdu.h:73
@ PROTOCOL_ERROR
Definition KeyAgreement.h:23