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::CardCertificateParserSpi Class Referenceabstract

#include <CardCertificateParserSpi.hpp>

Public Member Functions

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

Detailed Description

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

Since
0.2.0

Definition at line 30 of file CardCertificateParserSpi.hpp.

Member Function Documentation

◆ getCertificateType()

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

Returns the certificate type.

Returns
A byte.
Since
0.2.0

◆ parseCertificate()

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

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

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

Parameters
cardOutputDataA byte array containing the card certificate as stored on the card (316 bytes).
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: