Keyple Card Calypso C++ Library 2.2.5.6
Reference Terminal Reader API for C++
CmdCardVerifyPin.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2023 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional information regarding *
5 * copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the terms of the Eclipse *
8 * Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9 * *
10 * SPDX-License-Identifier: EPL-2.0 *
11 **************************************************************************************************/
12
13#pragma once
14
15#include <cstdint>
16#include <map>
17#include <memory>
18#include <vector>
19
20/* Calypsonet Terminal Card */
21#include "ApduResponseApi.h"
22
23/* Calypsonet Terminal Calypso */
24#include "CalypsoCard.h"
25
26/* Keyple Card Calypso */
27#include "AbstractApduCommand.h"
28#include "AbstractCardCommand.h"
29#include "CalypsoCardAdapter.h"
30#include "CalypsoCardClass.h"
31
32/* Keyple Core Util */
33#include "LoggerFactory.h"
34
35namespace keyple {
36namespace card {
37namespace calypso {
38
39using namespace calypsonet::terminal::calypso::card;
40using namespace keyple::core::util::cpp;
41
43
51public:
63 const std::shared_ptr<CalypsoCardAdapter> calypsoCard,
64 const bool encryptPinTransmission,
65 const std::vector<uint8_t>& pin);
66
74 CmdCardVerifyPin(const std::shared_ptr<CalypsoCardAdapter> calypsoCard);
75
81 void parseApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse) override;
82
89 bool isSessionBufferUsed() const override;
90
96 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
97 override;
98
99private:
103 const std::unique_ptr<Logger> mLogger = LoggerFactory::getLogger(typeid(CmdCardVerifyPin));
104
108 static const CalypsoCardCommand mCommand;
109
113 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
114
118 const uint8_t mCla;
119
123 bool mReadCounterOnly;
124
128 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
129};
130
131}
132}
133}
void parseApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
CmdCardVerifyPin(const std::shared_ptr< CalypsoCardAdapter > calypsoCard, const bool encryptPinTransmission, const std::vector< uint8_t > &pin)
AbstractApduCommand::StatusProperties StatusProperties