Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
TraceableSignatureVerificationDataAdapter.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 "TraceableSignatureVerificationData.h"
17
18/* Keyple Card Calypso */
20
21namespace keyple {
22namespace card {
23namespace calypso {
24
25using namespace calypsonet::terminal::calypso::transaction;
26
34: public CommonSignatureVerificationDataAdapter<TraceableSignatureVerificationData>,
35 public TraceableSignatureVerificationData {
36public:
42 TraceableSignatureVerificationData& withSamTraceabilityMode(const int offset,
43 const bool isPartialSamSerialNumber,
44 const bool checkSamRevocationStatus)
45 override;
46
52 TraceableSignatureVerificationData& withoutBusyMode() override;
53
60 bool isSamTraceabilityMode() const;
61
69 int getTraceabilityOffset() const;
70
79 bool isPartialSamSerialNumber() const;
80
89
96 bool isBusyMode() const;
97
98private:
102 bool mIsSamTraceabilityMode = false;
103
107 int mTraceabilityOffset = 0;
108
112 bool mIsPartialSamSerialNumber = false;
113
117 bool mIsSamRevocationStatusVerificationRequested = false;
118
122 bool mIsBusyMode = true;
123};
124
125}
126}
127}
TraceableSignatureVerificationData & withSamTraceabilityMode(const int offset, const bool isPartialSamSerialNumber, const bool checkSamRevocationStatus) override