Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
LegacyCardCertificateComputationData.hpp
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2024 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 https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <cstdint>
13#include <ctime>
14#include <memory>
15#include <vector>
16
17namespace keypop {
18namespace calypso {
19namespace crypto {
20namespace legacysam {
21namespace transaction {
22
31public:
45 setCardPublicKey(const std::vector<uint8_t>& cardPublicKey)
46 = 0;
47
59 virtual LegacyCardCertificateComputationData& setStartDate(std::shared_ptr<tm> startDate) = 0;
60
72 virtual LegacyCardCertificateComputationData& setEndDate(std::shared_ptr<tm> endDate) = 0;
73
85 virtual LegacyCardCertificateComputationData setCardAid(const std::vector<uint8_t>& aid) = 0;
86
96 setCardSerialNumber(const std::vector<uint8_t>& serialNumber)
97 = 0;
98
109 setCardStartupInfo(const std::vector<uint8_t>& startupInfo);
110
118 virtual const std::vector<uint8_t>& getCertificate() = 0;
119};
120
121} /* namespace transaction */
122} /* namespace legacysam */
123} /* namespace crypto */
124} /* namespace calypso */
125} /* namespace keypop */
virtual LegacyCardCertificateComputationData & setEndDate(std::shared_ptr< tm > endDate)=0
virtual LegacyCardCertificateComputationData setCardAid(const std::vector< uint8_t > &aid)=0
virtual LegacyCardCertificateComputationData & setCardPublicKey(const std::vector< uint8_t > &cardPublicKey)=0
virtual LegacyCardCertificateComputationData setCardSerialNumber(const std::vector< uint8_t > &serialNumber)=0
virtual LegacyCardCertificateComputationData & setCardStartupInfo(const std::vector< uint8_t > &startupInfo)
virtual LegacyCardCertificateComputationData & setStartDate(std::shared_ptr< tm > startDate)=0