Keypop Card C++ API - 2.0.1
Component of the Keypop C++ API
ProxyReaderApi.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 {
21
23
38public:
42 virtual ~ProxyReaderApi() = default;
43
78 virtual const std::shared_ptr<CardResponseApi> transmitCardRequest(
79 const std::shared_ptr<CardRequestSpi> cardRequest,
80 const ChannelControl channelControl)
81 = 0;
82
90 virtual void releaseChannel() = 0;
91};
92
93} /* namespace card */
94} /* namespace keypop */
Reader able to transmit card requests and having control over the physical channel.
virtual ~ProxyReaderApi()=default
virtual void releaseChannel()=0
Releases the communication channel previously established with the card.
virtual const std::shared_ptr< CardResponseApi > transmitCardRequest(const std::shared_ptr< CardRequestSpi > cardRequest, const ChannelControl channelControl)=0
Transmits a keypop::card::CardRequestSpi, applies the provided keypop::card::ChannelControl policy an...
Request grouping multiple APDUs to be executed consecutively.
ChannelControl
Policy for managing the physical channel after a card request is executed.