AusweisApp2
Lade ...
Suche ...
Keine Treffer
CardReturnCode.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11#include "EnumHelper.h"
12#include "GlobalStatus.h"
13
14namespace governikus
15{
16
17defineEnumType(CardReturnCode,
19 OK,
20 OK_PUK,
22 CARD_NOT_FOUND,
23 UNKNOWN,
24 INPUT_TIME_OUT,
25 INVALID_CAN,
26 INVALID_PASSWORD,
27 INVALID_PIN,
28 INVALID_PIN_2,
29 INVALID_PIN_3,
30 INVALID_PUK,
31 COMMAND_FAILED,
32 CANCELLATION_BY_USER,
33 NEW_PIN_MISMATCH,
34 NEW_PIN_INVALID_LENGTH,
35 PIN_BLOCKED,
36 PIN_NOT_BLOCKED,
37 PUK_INOPERATIVE,
38 NO_ACTIVE_PIN_SET,
41 UNEXPECTED_TRANSMIT_STATUS)
42
43
44class CardReturnCodeUtil
45{
46 private:
47 CardReturnCodeUtil() = default;
48
49 public:
50 static GlobalStatus toGlobalStatus(CardReturnCode pCode);
51 static bool equalsWrongPacePassword(CardReturnCode pCode);
52};
53
54} // namespace governikus
#define defineEnumType(enumName,...)
Definition: EnumHelper.h:98
Definition: GlobalStatus.h:22
Implementation of GeneralAuthenticate response APDUs.
Definition: CommandApdu.h:16
UNKNOWN
Definition: ResponseApdu.h:63
UNDEFINED
Definition: SecurityProtocol.h:22
WRONG_LENGTH
Definition: ResponseApdu.h:70