Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
LegacySamApiFactory.hpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2024 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <memory>
13#include <string>
14
15#include "keypop/calypso/card/transaction/spi/SymmetricCryptoCardTransactionManagerFactory.hpp"
28#include "keypop/reader/CardReader.hpp"
29
30namespace keypop {
31namespace calypso {
32namespace crypto {
33namespace legacysam {
34
35using keypop::calypso::card::transaction::spi::SymmetricCryptoCardTransactionManagerFactory;
48using keypop::reader::CardReader;
49
56public:
63 virtual std::shared_ptr<LegacySamSelectionExtension> createLegacySamSelectionExtension() = 0;
64
76 virtual std::shared_ptr<SymmetricCryptoCardTransactionManagerFactory>
78 const std::shared_ptr<CardReader> samReader, const std::shared_ptr<LegacySam> sam)
79 = 0;
80
87 virtual std::shared_ptr<SecuritySetting> createSecuritySetting() = 0;
88
98 virtual std::shared_ptr<FreeTransactionManager> createFreeTransactionManager(
99 const std::shared_ptr<CardReader> samReader, const std::shared_ptr<LegacySam> sam)
100 = 0;
101
114 virtual std::shared_ptr<AsyncTransactionCreatorManager> createAsyncTransactionCreatorManager(
115 const std::string& targetSamContext, const std::shared_ptr<SecuritySetting> securitySetting)
116 = 0;
117
130 virtual std::shared_ptr<AsyncTransactionExecutorManager> createAsyncTransactionExecutorManager(
131 const std::shared_ptr<CardReader> samReader,
132 const std::shared_ptr<LegacySam> sam,
133 const std::string& samCommands)
134 = 0;
135
142 virtual std::shared_ptr<KeyPairContainer> createKeyPairContainer() = 0;
143
150 virtual std::shared_ptr<LegacyCardCertificateComputationData>
152
159 virtual std::shared_ptr<BasicSignatureComputationData> createBasicSignatureComputationData()
160 = 0;
161
168 virtual std::shared_ptr<TraceableSignatureComputationData>
170
177 virtual std::shared_ptr<BasicSignatureVerificationData> createBasicSignatureVerificationData()
178 = 0;
179
186 virtual std::shared_ptr<TraceableSignatureVerificationData>
188};
189
190} /* namespace legacysam */
191} /* namespace crypto */
192} /* namespace calypso */
193} /* namespace keypop */
virtual std::shared_ptr< KeyPairContainer > createKeyPairContainer()=0
virtual std::shared_ptr< SymmetricCryptoCardTransactionManagerFactory > createSymmetricCryptoCardTransactionManagerFactory(const std::shared_ptr< CardReader > samReader, const std::shared_ptr< LegacySam > sam)=0
virtual std::shared_ptr< BasicSignatureComputationData > createBasicSignatureComputationData()=0
virtual std::shared_ptr< TraceableSignatureVerificationData > createTraceableSignatureVerificationData()=0
virtual std::shared_ptr< AsyncTransactionExecutorManager > createAsyncTransactionExecutorManager(const std::shared_ptr< CardReader > samReader, const std::shared_ptr< LegacySam > sam, const std::string &samCommands)=0
virtual std::shared_ptr< AsyncTransactionCreatorManager > createAsyncTransactionCreatorManager(const std::string &targetSamContext, const std::shared_ptr< SecuritySetting > securitySetting)=0
virtual std::shared_ptr< BasicSignatureVerificationData > createBasicSignatureVerificationData()=0
virtual std::shared_ptr< LegacyCardCertificateComputationData > createLegacyCardCertificateComputationData()=0
virtual std::shared_ptr< LegacySamSelectionExtension > createLegacySamSelectionExtension()=0
virtual std::shared_ptr< TraceableSignatureComputationData > createTraceableSignatureComputationData()=0
virtual std::shared_ptr< SecuritySetting > createSecuritySetting()=0
virtual std::shared_ptr< FreeTransactionManager > createFreeTransactionManager(const std::shared_ptr< CardReader > samReader, const std::shared_ptr< LegacySam > sam)=0