Keypop Calypso Crypto Asymmetric C++ API 0.2.0
Reference Calypso Crypto Asymmetric API for C++
Public Member Functions | List of all members
keypop::calypso::crypto::asymmetric::certificate::spi::CaCertificateParserSpi Class Referenceabstract

#include <CaCertificateParserSpi.hpp>

Public Member Functions

virtual uint8_t getCertificateType () const =0
 
virtual std::shared_ptr< CaCertificateSpiparseCertificate (const std::vector< uint8_t > &cardOutputData) const =0
 

Detailed Description

SPI dedicated to the creation of CA certificates from raw data stored on a card.

Since
0.2.0

Definition at line 30 of file CaCertificateParserSpi.hpp.

Member Function Documentation

◆ getCertificateType()

virtual uint8_t keypop::calypso::crypto::asymmetric::certificate::spi::CaCertificateParserSpi::getCertificateType ( ) const
pure virtual

Returns the certificate type.

Returns
A byte.
Since
0.2.0

◆ parseCertificate()

virtual std::shared_ptr< CaCertificateSpi > keypop::calypso::crypto::asymmetric::certificate::spi::CaCertificateParserSpi::parseCertificate ( const std::vector< uint8_t > &  cardOutputData) const
pure virtual

Parses the given card output data and creates a new CA certificate instance.

The first byte of the provided byte array is the certificate type.

Parameters
cardOutputDataA byte array containing the CA certificate as stored on the card.
Returns
A non-null reference.
Exceptions
CertificateValidationExceptionIf the provided certificate has an unsupported format.
Since
0.2.0

The documentation for this class was generated from the following file: