AusweisApp2
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,
17 OK,
18 OK_PUK,
19 RETRY_ALLOWED,
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,
37 PROTOCOL_ERROR,
38 EXTENDED_LENGTH_MISSING,
39 UNEXPECTED_TRANSMIT_STATUS)
40
41
42class CardReturnCodeUtil
43{
44 private:
45 CardReturnCodeUtil() = default;
46
47 public:
48 static GlobalStatus toGlobalStatus(CardReturnCode pCode);
49 static bool equalsWrongPacePassword(CardReturnCode pCode);
50};
51
52} // namespace governikus
Definition: GlobalStatus.h:20
A simple template renderer.
Definition: ActivationContext.h:15
UNKNOWN
Definition: ResponseApdu.h:63
UNDEFINED
Definition: SecurityProtocol.h:22
defineEnumType(ActivationType, UNKNOWN, SHOWUI, STATUS, TCTOKENURL) defineEnumType(StatusFormat
Format types for status responses.