Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
CommonControlSamTransactionManagerAdapter.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#include <memory>
16
17/* Keyple Card Calypso */
20
21namespace keyple {
22namespace card {
23namespace calypso {
24
33template <typename T>
36public:
50 const std::shared_ptr<SmartCard> targetSmartCard,
51 const std::shared_ptr<CommonSecuritySettingAdapter<T>> securitySetting,
52 const std::vector<uint8_t>& defaultKeyDiversifier,
53 const std::vector<std::vector<uint8_t>>& transactionAuditData)
54 : CommonSamTransactionManagerAdapter<T>(targetSmartCard,
55 securitySetting,
56 defaultKeyDiversifier,
57 transactionAuditData) {}
58
64 const std::shared_ptr<SamSecuritySetting> getSecuritySetting() const override
65 {
66 /* No security settings for a control SAM. */
67 return nullptr;
68 }
69};
70
71}
72}
73}
CommonControlSamTransactionManagerAdapter(const std::shared_ptr< SmartCard > targetSmartCard, const std::shared_ptr< CommonSecuritySettingAdapter< T > > securitySetting, const std::vector< uint8_t > &defaultKeyDiversifier, const std::vector< std::vector< uint8_t > > &transactionAuditData)
const std::shared_ptr< SamSecuritySetting > getSecuritySetting() const override