Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
Public Member Functions | List of all members
keyple::card::calypso::CmdSamCardGenerateKey Class Referencefinal

#include <CmdSamCardGenerateKey.h>

Inheritance diagram for keyple::card::calypso::CmdSamCardGenerateKey:
Inheritance graph
[legend]
Collaboration diagram for keyple::card::calypso::CmdSamCardGenerateKey:
Collaboration graph
[legend]

Public Member Functions

 CmdSamCardGenerateKey (const CalypsoSam::ProductType productType, const uint8_t cipheringKif, const uint8_t cipheringKvc, const uint8_t sourceKif, const uint8_t sourceKvc)
 
const std::vector< uint8_t > getCipheredData () const
 
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractSamCommand
 AbstractSamCommand (const CalypsoSamCommand &commandRef)
 
const CalypsoSamCommandgetCommandRef () const override
 
const CalypsoApduCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final
 
AbstractSamCommandsetApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override
 
void checkStatus () override
 
- Public Member Functions inherited from keyple::card::calypso::AbstractApduCommand
 AbstractApduCommand (const CardCommand &commandRef)
 
virtual void addSubName (const std::string &subName) final
 
virtual const std::string & getName () const final
 
virtual void setApduRequest (const std::shared_ptr< ApduRequestAdapter > apduRequest) final
 
virtual const std::shared_ptr< ApduRequestAdaptergetApduRequest () const final
 
virtual const std::shared_ptr< ApduResponseApi > getApduResponse () const final
 
virtual bool isSuccessful () const final
 
virtual const std::string getStatusInformation () const final
 

Additional Inherited Members

- Static Public Attributes inherited from keyple::card::calypso::AbstractSamCommand
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE = initStatusTable()
 
- Static Public Attributes inherited from keyple::card::calypso::AbstractApduCommand
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE
 

Detailed Description

(package-private)
Builds the Give Random APDU command.

Since
2.0.1

Definition at line 37 of file CmdSamCardGenerateKey.h.

Constructor & Destructor Documentation

◆ CmdSamCardGenerateKey()

keyple::card::calypso::CmdSamCardGenerateKey::CmdSamCardGenerateKey ( const CalypsoSam::ProductType  productType,
const uint8_t  cipheringKif,
const uint8_t  cipheringKvc,
const uint8_t  sourceKif,
const uint8_t  sourceKvc 
)

(package-private)
Instantiates a new CmdSamCardGenerateKey and generate the ciphered data for a key ciphered by another.

If bot KIF and KVC of the ciphering are equal to 0, the source key is ciphered with the null key.

Parameters
productTypethe SAM product type.
cipheringKifThe KIF of the ciphering key.
cipheringKvcThe KVC of the ciphering key.
sourceKifThe KIF of the source key.
sourceKvcThe KVC of the source key.
Since
2.0.1

Definition at line 38 of file CmdSamCardGenerateKey.cpp.

Member Function Documentation

◆ getCipheredData()

const std::vector< uint8_t > keyple::card::calypso::CmdSamCardGenerateKey::getCipheredData ( ) const

(package-private)
Gets the 32 bytes of ciphered data.

Returns
the ciphered data byte array or null if the operation failed
Since
2.0.1

Definition at line 77 of file CmdSamCardGenerateKey.cpp.

◆ getStatusTable()

const std::map< const int, const std::shared_ptr< StatusProperties > > & keyple::card::calypso::CmdSamCardGenerateKey::getStatusTable ( ) const
overridevirtual

(package-private)
Returns the internal status table

Returns
A not null reference
Since
2.0.1
Since
2.0.1

Since
2.0.1

Reimplemented from keyple::card::calypso::AbstractSamCommand.

Definition at line 110 of file CmdSamCardGenerateKey.cpp.


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