Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
src
main
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
13
#include "
CmdCardRatificationBuilder.h
"
14
15
namespace
keyple
{
16
namespace
card {
17
namespace
calypso {
18
19
CmdCardRatificationBuilder::CmdCardRatificationBuilder() {}
20
21
const
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
}
CmdCardRatificationBuilder.h
keyple::card::calypso::CalypsoCardClass
Definition:
CalypsoCardClass.h:29
keyple::card::calypso::CalypsoCardClass::getValue
uint8_t getValue() const
Definition:
CalypsoCardClass.cpp:28
keyple::card::calypso::CmdCardRatificationBuilder::getApduRequest
static const std::shared_ptr< ApduRequestAdapter > getApduRequest(const CalypsoCardClass calypsoCardClass)
Definition:
CmdCardRatificationBuilder.cpp:21
keyple
Definition:
AbstractApduCommand.cpp:20
Generated by
1.9.2