Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
SamTransactionManagerAdapter.cpp
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
14
15namespace keyple {
16namespace card {
17namespace calypso {
18
20 const std::shared_ptr<ProxyReaderApi> samReader,
21 const std::shared_ptr<CalypsoSamAdapter> sam,
22 const std::shared_ptr<SamSecuritySettingAdapter> securitySetting)
23: CommonSamTransactionManagerAdapter(samReader, sam, securitySetting),
24 mSecuritySetting(securitySetting),
25 mControlSamTransactionManager(securitySetting != nullptr &&
26 securitySetting->getControlSam() != nullptr ?
28 sam,
29 securitySetting,
30 getTransactionAuditData()) : nullptr) {}
31
32const std::shared_ptr<SamSecuritySetting> SamTransactionManagerAdapter::getSecuritySetting() const
33{
34 return mSecuritySetting;
35}
36
37}
38}
39}
SamTransactionManagerAdapter(const std::shared_ptr< ProxyReaderApi > samReader, const std::shared_ptr< CalypsoSamAdapter > sam, const std::shared_ptr< SamSecuritySettingAdapter > securitySetting)
const std::shared_ptr< SamSecuritySetting > getSecuritySetting() const override