AusweisApp2
Lade ...
Suche ...
Keine Treffer
CardReturnCode.h
gehe zur Dokumentation dieser Datei
1
7#pragma once
8
9#include "EnumHelper.h"
10#include "GlobalStatus.h"
11
12namespace governikus
13{
14
15defineEnumType(CardReturnCode,
16 UNDEFINED,
17 OK,
18 OK_PUK,
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,
36 NO_ACTIVE_PIN_SET,
38 UNEXPECTED_TRANSMIT_STATUS)
39
40
41class CardReturnCodeUtil
42{
43 private:
44 CardReturnCodeUtil()
45 {
46 }
47
48 public:
49 static GlobalStatus toGlobalStatus(CardReturnCode pCode);
50 static bool equalsWrongPacePassword(CardReturnCode pCode);
51};
52
53} // namespace governikus
#define defineEnumType(enumName,...)
Definition: EnumHelper.h:86
Definition: GlobalStatus.h:20
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
UNKNOWN
Definition: SmartCardDefinitions.h:18