Keypop Calypso Crypto Asymmetric C++ API - 0.2.0
Component of the Keypop C++ API
CaCertificateParserSpi.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 <cstdint>
14#include <memory>
15#include <vector>
16
18
19namespace keypop {
20namespace calypso {
21namespace crypto {
22namespace asymmetric {
23namespace certificate {
24namespace spi {
25
33public:
40 virtual uint8_t getCertificateType() const = 0;
41
55 virtual std::shared_ptr<CaCertificateSpi>
56 parseCertificate(const std::vector<uint8_t>& cardOutputData) const = 0;
57};
58
59} /* namespace spi */
60} /* namespace certificate */
61} /* namespace asymmetric */
62} /* namespace crypto */
63} /* namespace calypso */
64} /* namespace keypop */
SPI dedicated to the creation of CA certificates from raw data stored on a card.
virtual uint8_t getCertificateType() const =0
Returns the certificate type.
virtual std::shared_ptr< CaCertificateSpi > parseCertificate(const std::vector< uint8_t > &cardOutputData) const =0
Parses the given card output data and creates a new CA certificate instance.