#include <CardCertificaterSpi.hpp>
SPI dedicated to card certificate management.
- Since
- 0.2.0
Definition at line 31 of file CardCertificaterSpi.hpp.
◆ checkCertificateAndGetPublicKey()
virtual const std::shared_ptr< CardPublicKeySpi > keypop::calypso::crypto::asymmetric::certificate::spi::CardCertificateSpi::checkCertificateAndGetPublicKey |
( |
const std::shared_ptr< CaCertificateContentSpi > |
issuerCertificateContent | ) |
|
|
pure virtual |
Verifies the certificate signature and other relevant fields, then returns the public key.
This method performs a comprehensive validation of the certificate, including but not limited to checking the validity of the signature. It also verifies other essential fields of the certificate, such as the validity period, the issuer and subject details, and any relevant constraints or extensions. The method ensures the certificate is not only properly signed by the issuer but also conforms to the expected standards and requirements.
- Parameters
-
issuerCertificateContent | The issuer certificate content to be used for signature verification. |
- Returns
- A non-null reference.
- Exceptions
-
- Since
- 0.2.0
◆ getCardAid()
virtual const std::vector< uint8_t > & keypop::calypso::crypto::asymmetric::certificate::spi::CardCertificateSpi::getCardAid |
( |
| ) |
const |
|
pure virtual |
Retrieves the AID of the autonomous application of the card as a byte array ranging from 5 to 16 bytes.
- Returns
- A non-empty byte array.
- Since
- 0.2.0
◆ getCardSerialNumber()
virtual const std::vector< uint8_t > & keypop::calypso::crypto::asymmetric::certificate::spi::CardCertificateSpi::getCardSerialNumber |
( |
| ) |
const |
|
pure virtual |
Retrieves the serial number of the card as 8-byte byte array.
- Returns
- A non-empty byte array.
- Since
- 0.2.0
◆ getIssuerPublicKeyReference()
virtual const std::vector< uint8_t > & keypop::calypso::crypto::asymmetric::certificate::spi::CardCertificateSpi::getIssuerPublicKeyReference |
( |
| ) |
const |
|
pure virtual |
Retrieves the reference of the issuer's public key as a byte array.
- Returns
- A non-empty byte array.
- Since
- 0.2.0
The documentation for this class was generated from the following file: