Keypop Calypso Crypto Legacy SAM C++ API 0.6.0
Reference Calypso Crypto Legacy SAM API for C++
Public Member Functions | List of all members
keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData Class Referenceabstract

#include <LegacyCardCertificateComputationData.hpp>

Public Member Functions

virtual LegacyCardCertificateComputationDatasetCardPublicKey (const std::vector< uint8_t > &cardPublicKey)=0
 
virtual LegacyCardCertificateComputationDatasetStartDate (std::shared_ptr< tm > startDate)=0
 
virtual LegacyCardCertificateComputationDatasetEndDate (std::shared_ptr< tm > endDate)=0
 
virtual LegacyCardCertificateComputationData setCardAid (const std::vector< uint8_t > &aid)=0
 
virtual LegacyCardCertificateComputationData setCardSerialNumber (const std::vector< uint8_t > &serialNumber)=0
 
virtual LegacyCardCertificateComputationDatasetCardStartupInfo (const std::vector< uint8_t > &startupInfo)
 
virtual const std::vector< uint8_t > & getCertificate ()=0
 

Detailed Description

Contains the input/output data of the FreeTransactionManager#prepareComputeCardCertificate(LegacyCardCertificateComputationData) method.

Since
0.5.0

Definition at line 30 of file LegacyCardCertificateComputationData.hpp.

Member Function Documentation

◆ getCertificate()

virtual const std::vector< uint8_t > & keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData::getCertificate ( )
pure virtual

Returns the certificate generated by the SAM after the execution of the "PSO Compute Certificate" command.

Returns
A 316-byte byte array or null if the computation has not been performed.
Since
0.5.0

◆ setCardAid()

virtual LegacyCardCertificateComputationData keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData::setCardAid ( const std::vector< uint8_t > &  aid)
pure virtual

Sets the AID of the autonomous PKI application of the target card.

The aid field cannot contain only zero bytes.

Parameters
aidThe AID value as a 5 to 16 bytes byte array. Must not contain only zero bytes.
Returns
The current instance.
Exceptions
IllegalArgumentExceptionIf the provided AID is null, out of range, or contains only zero bytes.
Since
0.5.0

◆ setCardPublicKey()

virtual LegacyCardCertificateComputationData & keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData::setCardPublicKey ( const std::vector< uint8_t > &  cardPublicKey)
pure virtual

Sets the public key of the card, provided as a 64-byte array.

This key is expected to be on the secp256r1 elliptic curve. It will be used for the verification of card signatures.

Parameters
cardPublicKeyThe 64-byte array representing the public key on the secp256r1 curve.
Returns
The current instance.
Exceptions
IllegalArgumentExceptionIf the provided key is null or out of range.
Since
0.5.0

◆ setCardSerialNumber()

virtual LegacyCardCertificateComputationData keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData::setCardSerialNumber ( const std::vector< uint8_t > &  serialNumber)
pure virtual

Sets the serial number of the card for which the certificate is being generated.

Parameters
serialNumberThe serial number of the card as an 8-byte byte array.
Returns
The current instance.
Exceptions
IllegalArgumentExceptionIf the provided argument is null or out of range.
Since
0.5.0

◆ setCardStartupInfo()

virtual LegacyCardCertificateComputationData & keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData::setCardStartupInfo ( const std::vector< uint8_t > &  startupInfo)
virtual

Sets the startup info of the card for which the certificate is being generated.

Parameters
startupInfoThe 7-byte byte array representing the startup info for the card certificate.
Returns
The current instance.
Exceptions
IllegalArgumentExceptionIf the provided argument is null or out of range.
Since
0.5.0

◆ setEndDate()

virtual LegacyCardCertificateComputationData & keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData::setEndDate ( std::shared_ptr< tm >  endDate)
pure virtual

Sets the end date of the validity period of the certificate's public key.

The end date is optional. If it is not defined, the certificate is not subject to an end date constraint.

Parameters
endDateThe end date.
Returns
The current instance.
Exceptions
IllegalArgumentExceptionIf date is null.
Since
0.5.0

◆ setStartDate()

virtual LegacyCardCertificateComputationData & keypop::calypso::crypto::legacysam::transaction::LegacyCardCertificateComputationData::setStartDate ( std::shared_ptr< tm >  startDate)
pure virtual

Sets the start date of the validity period of the certificate's public key.

The start date is optional. If it is not defined, the certificate is not subject to a start date constraint.

Parameters
startDateThe start date.
Returns
The current instance.
Exceptions
IllegalArgumentExceptionIf date is null.
Since
0.5.0

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