Keypop Calypso Crypto Asymmetric C++ API 0.2.0
Reference Calypso Crypto Asymmetric API for C++
CardCertificateParserSpi.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 <memory>
14#include <vector>
15
16#include "keypop/calypso/crypto/asymmetric/certificate/spi/CardCertificateSpi.hpp"
17
18namespace keypop {
19namespace calypso {
20namespace crypto {
21namespace asymmetric {
22namespace certificate {
23namespace spi {
24
31public:
38 virtual uint8_t getCertificateType() const = 0;
39
51 virtual std::shared_ptr<CardCertificateSpi>
52 parseCertificate(const std::vector<uint8_t>& cardOutputData) const = 0;
53};
54
55} /* namespace spi */
56} /* namespace certificate */
57} /* namespace asymmetric */
58} /* namespace crypto */
59} /* namespace calypso */
60} /* namespace keypop */
virtual std::shared_ptr< CardCertificateSpi > parseCertificate(const std::vector< uint8_t > &cardOutputData) const =0