AusweisApp2
CardReturnCode.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "EnumHelper.h"
10 #include "GlobalStatus.h"
11 
12 namespace governikus
13 {
14 
15 defineEnumType(CardReturnCode,
16  UNDEFINED,
17  OK,
18  OK_PUK,
19  RETRY_ALLOWED,
20  CARD_NOT_FOUND,
21  UNKNOWN,
22  INPUT_TIME_OUT,
23  INVALID_CAN,
24  INVALID_PIN,
25  INVALID_PIN_2,
26  INVALID_PIN_3,
27  INVALID_PUK,
28  COMMAND_FAILED,
29  CANCELLATION_BY_USER,
30  NEW_PIN_MISMATCH,
31  NEW_PIN_INVALID_LENGTH,
32  PIN_BLOCKED,
33  PIN_NOT_BLOCKED,
34  PUK_INOPERATIVE,
35  PROTOCOL_ERROR,
36  UNEXPECTED_TRANSMIT_STATUS)
37 
38 
39 class CardReturnCodeUtil
40 {
41  private:
42  CardReturnCodeUtil()
43  {
44  }
45 
46  public:
47  static GlobalStatus toGlobalStatus(CardReturnCode pCode);
48  static bool equalsWrongPacePassword(CardReturnCode pCode);
49 };
50 
51 } // namespace governikus
governikus::UNKNOWN
UNKNOWN
Definition: SmartCardDefinitions.h:18
Initializer.h
governikus::GlobalStatus::Code::Card_NewPin_Mismatch
@ Card_NewPin_Mismatch
governikus::GlobalStatus::Code::Card_Invalid_Can
@ Card_Invalid_Can
governikus::GlobalStatus::Code::Card_NewPin_Invalid_Length
@ Card_NewPin_Invalid_Length
CardReturnCode.h
governikus::GlobalStatus::Code::Unknown_Error
@ Unknown_Error
governikus::GlobalStatus::Code::No_Error
@ No_Error
governikus::GlobalStatus::Code::Card_Puk_Blocked
@ Card_Puk_Blocked
governikus::GlobalStatus::Code::Card_Protocol_Error
@ Card_Protocol_Error
GlobalStatus.h
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::defineEnumType
defineEnumType(KeyAgreementType, DH, ECDH) defineEnumType(MappingType
Method used for key agreement:
governikus::GlobalStatus::Code::Card_Unexpected_Transmit_Status
@ Card_Unexpected_Transmit_Status
governikus::GlobalStatus::Code::Card_Pin_Not_Blocked
@ Card_Pin_Not_Blocked
EnumHelper.h
governikus::GlobalStatus::Code::Card_Not_Found
@ Card_Not_Found
governikus::GlobalStatus::Code::Card_Communication_Error
@ Card_Communication_Error
governikus::GlobalStatus::Code::Card_Invalid_Puk
@ Card_Invalid_Puk
governikus::Initializer::Entry
Definition: Initializer.h:31
governikus::GlobalStatus
Definition: GlobalStatus.h:20
governikus::GlobalStatus::Code::Card_Invalid_Pin
@ Card_Invalid_Pin
governikus::GlobalStatus::Code::Card_Cancellation_By_User
@ Card_Cancellation_By_User
governikus::GlobalStatus::Code::Card_Pin_Blocked
@ Card_Pin_Blocked
governikus::GlobalStatus::Code::Card_Input_TimeOut
@ Card_Input_TimeOut