Keypop Calypso Crypto Asymmetric C++ API - 0.2.0
Component of the Keypop C++ API
CaCertificateSpi.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 <string>
16#include <vector>
17
19
20namespace keypop {
21namespace calypso {
22namespace crypto {
23namespace asymmetric {
24namespace certificate {
25namespace spi {
26
33public:
40 virtual const std::vector<uint8_t>& getIssuerPublicKeyReference() const = 0;
41
63 virtual std::shared_ptr<CaCertificateContentSpi>
65 std::shared_ptr<CaCertificateContentSpi> issuerCertificateContent)
66 = 0;
67};
68
69} /* namespace spi */
70} /* namespace certificate */
71} /* namespace asymmetric */
72} /* namespace crypto */
73} /* namespace calypso */
74} /* namespace keypop */
SPI dedicated to Certification Authority (CA) certificate management.
virtual std::shared_ptr< CaCertificateContentSpi > checkCertificateAndGetContent(std::shared_ptr< CaCertificateContentSpi > issuerCertificateContent)=0
Verifies the certificate signature and other relevant fields, then returns the certificate content.
virtual const std::vector< uint8_t > & getIssuerPublicKeyReference() const =0
Retrieves the reference of the issuer's public key as a byte array.