Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CmdCardRatificationBuilder.cpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2021 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
19CmdCardRatificationBuilder::CmdCardRatificationBuilder() {}
20
21const std::shared_ptr<ApduRequestAdapter> CmdCardRatificationBuilder::getApduRequest(
22 const CalypsoCardClass calypsoCardClass)
23{
24 const std::vector<uint8_t> ratificationApdu = {
25 calypsoCardClass.getValue(), 0xB2, 0x00, 0x00, 0x00
26 };
27
28 return std::make_shared<ApduRequestAdapter>(ratificationApdu);
29}
30
31}
32}
33}
static const std::shared_ptr< ApduRequestAdapter > getApduRequest(const CalypsoCardClass calypsoCardClass)