Keypop Card C++ API - 2.0.1
Component of the Keypop C++ API
CardSelectionExtensionSpi.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
18
19namespace keypop {
20namespace card {
21namespace spi {
22
39public:
43 virtual ~CardSelectionExtensionSpi() = default;
44
52 virtual std::unique_ptr<CardSelectionRequestSpi> getCardSelectionRequest()
53 = 0;
54
64 virtual std::shared_ptr<SmartCardSpi> parse(
65 const std::shared_ptr<CardSelectionResponseApi>&
66 cardSelectionResponseApi)
67 = 0;
68};
69
70} /* namespace spi */
71} /* namespace card */
72} /* namespace keypop */
Extension of the card selection for a specific card extension.
virtual std::unique_ptr< CardSelectionRequestSpi > getCardSelectionRequest()=0
Gets the card selection request containing the selection data prepared for this selection.
virtual std::shared_ptr< SmartCardSpi > parse(const std::shared_ptr< CardSelectionResponseApi > &cardSelectionResponseApi)=0
Analyzes the response received from the card during the selection process and creates a SmartCardSpi.
virtual ~CardSelectionExtensionSpi()=default
Virtual destructor.