Keyple Card Calypso C++ Library 2.2.5.6
Reference Terminal Reader API for C++
CmdSamCardCipherPin.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 <vector>
18
19/* Keyple Card Calypso */
20#include "AbstractSamCommand.h"
21#include "CalypsoSamAdapter.h"
22
23namespace keyple {
24namespace card {
25namespace calypso {
26
34public:
53 CmdSamCardCipherPin(const std::shared_ptr<CalypsoSamAdapter> calypsoSam,
54 const uint8_t cipheringKif,
55 const uint8_t cipheringKvc,
56 const std::vector<uint8_t>& currentPin,
57 const std::vector<uint8_t>& newPin);
58
66 const std::vector<uint8_t> getCipheredData() const;
67
73 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
74 override;
75
76private:
80 static const CalypsoSamCommand mCommand;
81
85 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
86
90 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
91};
92
93}
94}
95}
const std::vector< uint8_t > getCipheredData() const
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
CmdSamCardCipherPin(const std::shared_ptr< CalypsoSamAdapter > calypsoSam, const uint8_t cipheringKif, const uint8_t cipheringKvc, const std::vector< uint8_t > &currentPin, const std::vector< uint8_t > &newPin)