Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | List of all members
keyple::calypso::command::sam::builder::security::CardGenerateKeyCmdBuild Class Reference

#include <CardGenerateKeyCmdBuild.h>

Inherits keyple::calypso::command::sam::AbstractSamCommandBuilder< CardGenerateKeyRespPars >.

Public Member Functions

 CardGenerateKeyCmdBuild (const SamRevision &revision, const std::shared_ptr< KeyReference > cipheringKey, const std::shared_ptr< KeyReference > sourceKey)
 
std::shared_ptr< CardGenerateKeyRespParscreateResponseParser (std::shared_ptr< ApduResponse > apduResponse) override
 
- Public Member Functions inherited from keyple::calypso::command::sam::AbstractSamCommandBuilder< CardGenerateKeyRespPars >
 AbstractSamCommandBuilder (const std::shared_ptr< SeCommand > reference, const std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractSamCommandBuilder ()=default
 
const std::shared_ptr< SeCommandgetCommandRef () const override
 
- Public Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder
 AbstractIso7816CommandBuilder (const std::shared_ptr< SeCommand > commandReference, const std::shared_ptr< ApduRequest > request)
 
 AbstractIso7816CommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractIso7816CommandBuilder ()=default
 
- Public Member Functions inherited from keyple::core::command::AbstractApduCommandBuilder
 AbstractApduCommandBuilder (const std::shared_ptr< SeCommand > commandRef, const std::shared_ptr< ApduRequest > request)
 
 AbstractApduCommandBuilder (const std::string &name, const std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractApduCommandBuilder ()=default
 
virtual void addSubName (const std::string &subName)
 
virtual const std::shared_ptr< SeCommandgetCommandRef () const
 
virtual const std::string & getName () const
 
virtual const std::shared_ptr< ApduRequestgetApduRequest () const
 

Additional Inherited Members

- Protected Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder
virtual std::shared_ptr< ApduRequestsetApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn)
 
virtual std::shared_ptr< ApduRequestsetApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const uint8_t le)
 
virtual std::shared_ptr< ApduRequestsetApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const std::vector< uint8_t > &dataIn, const uint8_t le)
 
- Protected Attributes inherited from keyple::calypso::command::sam::AbstractSamCommandBuilder< CardGenerateKeyRespPars >
SamRevision mDefaultRevision
 
- Protected Attributes inherited from keyple::core::command::AbstractApduCommandBuilder
const std::shared_ptr< SeCommandmCommandRef
 
std::shared_ptr< ApduRequestmRequest
 

Detailed Description

Builder for the SAM Give Random APDU command.

Constructor & Destructor Documentation

◆ CardGenerateKeyCmdBuild()

keyple::calypso::command::sam::builder::security::CardGenerateKeyCmdBuild::CardGenerateKeyCmdBuild ( const SamRevision revision,
const std::shared_ptr< KeyReference cipheringKey,
const std::shared_ptr< KeyReference sourceKey 
)

Instantiates a new DigestUpdateCmdBuild and generate the ciphered data for a key ciphered by another.

If the provided ciphering key reference is null, the source key is ciphered with the null key.

Parameters
revisionof the SAM
cipheringKeythe key used to ciphering the source key (the null key is used if this reference is null)
sourceKeythe reference of the key to be loaded

Member Function Documentation

◆ createResponseParser()

std::shared_ptr< CardGenerateKeyRespPars > keyple::calypso::command::sam::builder::security::CardGenerateKeyCmdBuild::createResponseParser ( std::shared_ptr< ApduResponse apduResponse)
overridevirtual

Create the response parser matching the builder

Parameters
apduResponsethe response data from the SE
Returns
an keyple::core::command::AbstractApduResponseParser

Implements keyple::calypso::command::sam::AbstractSamCommandBuilder< CardGenerateKeyRespPars >.


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