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::DigestInitCmdBuild Class Referencefinal

#include <DigestInitCmdBuild.h>

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

Public Member Functions

 DigestInitCmdBuild (const SamRevision &revision, const bool verificationMode, const bool confidentialSessionMode, const uint8_t workKeyRecordNumber, const uint8_t workKeyKif, const uint8_t workKeyKVC, const std::vector< uint8_t > &digestData)
 
std::shared_ptr< DigestInitRespParscreateResponseParser (const std::shared_ptr< ApduResponse > apduResponse) override
 
- Public Member Functions inherited from keyple::calypso::command::sam::AbstractSamCommandBuilder< DigestInitRespPars >
 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< DigestInitRespPars >
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 Digest Init APDU command.

Constructor & Destructor Documentation

◆ DigestInitCmdBuild()

keyple::calypso::command::sam::builder::security::DigestInitCmdBuild::DigestInitCmdBuild ( const SamRevision revision,
const bool  verificationMode,
const bool  confidentialSessionMode,
const uint8_t  workKeyRecordNumber,
const uint8_t  workKeyKif,
const uint8_t  workKeyKVC,
const std::vector< uint8_t > &  digestData 
)

Instantiates a new DigestInitCmdBuild.

Parameters
revisionof the SAM
verificationModethe verification mode
confidentialSessionModethe confidential session mode (rev 3.2)
workKeyRecordNumberthe work key record number
workKeyKiffrom the AbstractOpenSessionCmdBuild response
workKeyKVCfrom the AbstractOpenSessionCmdBuild response
digestDataall data out from the AbstractOpenSessionCmdBuild response
Exceptions
IllegalArgumentException- if the work key record number
IllegalArgumentException- if the digest data is null
IllegalArgumentException- if the request is inconsistent

Member Function Documentation

◆ createResponseParser()

std::shared_ptr< DigestInitRespPars > keyple::calypso::command::sam::builder::security::DigestInitCmdBuild::createResponseParser ( const 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< DigestInitRespPars >.


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