Keyple Card Calypso C++ Library 2.2.5.6
Reference Terminal Reader API for C++
TraceableSignatureComputationDataAdapter.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/* Calypsonet Terminal Calypso */
16#include "TraceableSignatureComputationData.h"
17
18/* Keyple Card Calypso */
21
22
23namespace keyple {
24namespace card {
25namespace calypso {
26
27using namespace calypsonet::terminal::calypso::transaction;
28
36: public CommonSignatureComputationDataAdapter<TraceableSignatureComputationData>,
37 public TraceableSignatureComputationData {
38public:
44 TraceableSignatureComputationData& withSamTraceabilityMode(const int offset,
45 const bool usePartialSamSerialNumber)
46 override;
47
53 TraceableSignatureComputationData& withoutBusyMode() override;
54
60 const std::vector<uint8_t>& getSignedData() const override;
61
68 bool isSamTraceabilityMode() const;
69
78 bool isPartialSamSerialNumber() const;
79
87 int getTraceabilityOffset() const;
88
95 bool isBusyMode() const;
96
104 void setSignedData(const std::vector<uint8_t>& signedData);
105
106private:
110 bool mIsSamTraceabilityMode = false;
111
115 int mTraceabilityOffset = 0;
116
120 bool mIsPartialSamSerialNumber = false;
121
125 bool mIsBusyMode = true;
126
130 std::vector<uint8_t> mSignedData;
131
135 bool mSignedDataPresent = false;
136};
137
138}
139}
140}
#define KEYPLECARDCALYPSO_API