Keypop Calypso Crypto Asymmetric C++ API - 0.2.0
Component of the Keypop C++ API
CaCertificateContentSpi.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
27
34public:
42 virtual const std::shared_ptr<PublicKey> getPublicKey() const = 0;
43
50 virtual const std::vector<uint8_t>& getPublicKeyReference() const = 0;
51
64 virtual uint64_t getStartDate() const = 0;
65
78 virtual uint64_t getEndDate() const = 0;
79
86 virtual bool isAidCheckRequested() const = 0;
87
94 virtual bool isAidTruncated() const = 0;
95
102 virtual const std::vector<uint8_t>& getAid() const = 0;
103
112
122};
123
124} /* namespace spi */
125} /* namespace certificate */
126} /* namespace asymmetric */
127} /* namespace crypto */
128} /* namespace calypso */
129} /* namespace keypop */
virtual uint64_t getEndDate() const =0
Returns the validity end date of the certificate in long format.
virtual bool isCaCertificatesAuthenticationAllowed() const =0
Indicates if the certificate can be used to authenticate CA certificates.
virtual bool isAidTruncated() const =0
Indicates if the AID is truncated.
virtual const std::vector< uint8_t > & getPublicKeyReference() const =0
Returns the reference of the public key as a byte array.
virtual bool isAidCheckRequested() const =0
Indicates if the AID has to be checked.
virtual bool isCardCertificatesAuthenticationAllowed() const =0
Indicates if the certificate can be used to authenticate card certificates.
virtual uint64_t getStartDate() const =0
Returns the validity start date of the certificate in long format.
virtual const std::shared_ptr< PublicKey > getPublicKey() const =0
Returns the public key.
virtual const std::vector< uint8_t > & getAid() const =0
Return the AID value.