Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
CmdSamDataCipher.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2022 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/* Calypsonet Terminal Calypso */
16#include "CalypsoSam.h"
17
18/* Keyple Card Calypso */
19#include "AbstractApduCommand.h"
20#include "AbstractSamCommand.h"
23
24namespace keyple {
25namespace card {
26namespace calypso {
27
28using namespace calypsonet::terminal::calypso::sam;
29
31
39public:
50 const CalypsoSam::ProductType productType,
51 const std::shared_ptr<BasicSignatureComputationDataAdapter> signatureComputationData,
52 const std::shared_ptr<BasicSignatureVerificationDataAdapter> signatureVerificationData);
53
59 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
60 override;
61
67 AbstractSamCommand& setApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse)
68 override;
69
75 void checkStatus() override;
76
77private:
81 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
82
86 const std::shared_ptr<BasicSignatureComputationDataAdapter> mSignatureComputationData;
87
91 const std::shared_ptr<BasicSignatureVerificationDataAdapter> mSignatureVerificationData;
92
96 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
97};
98
99}
100}
101}
CmdSamDataCipher(const CalypsoSam::ProductType productType, const std::shared_ptr< BasicSignatureComputationDataAdapter > signatureComputationData, const std::shared_ptr< BasicSignatureVerificationDataAdapter > signatureVerificationData)
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
AbstractSamCommand & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
AbstractApduCommand::StatusProperties StatusProperties
CalypsoSam::ProductType ProductType