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) 2025 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 *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <memory>
14#include <string>
15
16#include "keypop/calypso/card/transaction/spi/SymmetricCryptoCardTransactionManagerFactory.hpp"
29#include "keypop/reader/CardReader.hpp"
30
31namespace keypop {
32namespace calypso {
33namespace crypto {
34namespace legacysam {
35
36using keypop::calypso::card::transaction::spi::
37 SymmetricCryptoCardTransactionManagerFactory;
40using keypop::calypso::crypto::legacysam::transaction::
41 AsyncTransactionCreatorManager;
42using keypop::calypso::crypto::legacysam::transaction::
43 AsyncTransactionExecutorManager;
44using keypop::calypso::crypto::legacysam::transaction::
45 BasicSignatureComputationData;
46using keypop::calypso::crypto::legacysam::transaction::
47 BasicSignatureVerificationData;
50using keypop::calypso::crypto::legacysam::transaction::
51 LegacyCardCertificateComputationData;
53using keypop::calypso::crypto::legacysam::transaction::
54 TraceableSignatureComputationData;
55using keypop::calypso::crypto::legacysam::transaction::
56 TraceableSignatureVerificationData;
57using keypop::reader::CardReader;
58
65public:
72 virtual std::shared_ptr<LegacySamSelectionExtension>
74
87 virtual std::shared_ptr<SymmetricCryptoCardTransactionManagerFactory>
89 const std::shared_ptr<CardReader> samReader,
90 const std::shared_ptr<LegacySam> sam)
91 = 0;
92
99 virtual std::shared_ptr<SecuritySetting> createSecuritySetting() = 0;
100
110 virtual std::shared_ptr<FreeTransactionManager>
112 const std::shared_ptr<CardReader> samReader,
113 const std::shared_ptr<LegacySam> sam)
114 = 0;
115
128 virtual std::shared_ptr<AsyncTransactionCreatorManager>
130 const std::string& targetSamContext,
131 const std::shared_ptr<SecuritySetting> securitySetting)
132 = 0;
133
146 virtual std::shared_ptr<AsyncTransactionExecutorManager>
148 const std::shared_ptr<CardReader> samReader,
149 const std::shared_ptr<LegacySam> sam,
150 const std::string& samCommands)
151 = 0;
152
159 virtual std::shared_ptr<KeyPairContainer> createKeyPairContainer() = 0;
160
167 virtual std::shared_ptr<LegacyCardCertificateComputationData>
169
176 virtual std::shared_ptr<BasicSignatureComputationData>
178
185 virtual std::shared_ptr<TraceableSignatureComputationData>
187
194 virtual std::shared_ptr<BasicSignatureVerificationData>
196
203 virtual std::shared_ptr<TraceableSignatureVerificationData>
205};
206
207} /* namespace legacysam */
208} /* namespace crypto */
209} /* namespace calypso */
210} /* 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