AusweisApp
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,
40 UNEXPECTED_TRANSMIT_STATUS)
41
42
43class CardReturnCodeUtil
44{
45 private:
46 CardReturnCodeUtil() = default;
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:90
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