#include <UpdateRecordCmdBuild.h>
Inherits keyple::calypso::command::po::AbstractPoCommandBuilder< UpdateRecordRespPars >.
|
Protected Member Functions inherited from keyple::core::command::AbstractIso7816CommandBuilder |
virtual std::shared_ptr< ApduRequest > | setApduRequest (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< ApduRequest > | setApduRequest (const uint8_t cla, const SeCommand &command, const uint8_t p1, const uint8_t p2, const uint8_t le) |
|
virtual std::shared_ptr< ApduRequest > | setApduRequest (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::po::AbstractPoCommandBuilder< UpdateRecordRespPars > |
const std::shared_ptr< Logger > | mLogger |
|
Protected Attributes inherited from keyple::core::command::AbstractApduCommandBuilder |
const std::shared_ptr< SeCommand > | mCommandRef |
|
std::shared_ptr< ApduRequest > | mRequest |
|
The Class UpdateRecordCmdBuild. This class provides the dedicated constructor to build the Update Record APDU command.
◆ UpdateRecordCmdBuild()
keyple::calypso::command::po::builder::UpdateRecordCmdBuild::UpdateRecordCmdBuild |
( |
const PoClass |
poClass, |
|
|
const uint8_t |
sfi, |
|
|
const uint8_t |
recordNumber, |
|
|
const std::vector< uint8_t > & |
newRecordData |
|
) |
| |
Instantiates a new UpdateRecordCmdBuild.
- Parameters
-
poClass | indicates which CLA byte should be used for the Apdu |
sfi | the sfi to select |
recordNumber | the record number to update |
newRecordData | the new record data to write |
- Exceptions
-
IllegalArgumentException | - if record number is < 1 |
IllegalArgumentException | - if the request is inconsistent |
◆ createResponseParser()
std::shared_ptr< UpdateRecordRespPars > keyple::calypso::command::po::builder::UpdateRecordCmdBuild::createResponseParser |
( |
std::shared_ptr< ApduResponse > |
apduResponse | ) |
|
|
overridevirtual |
◆ getData()
const std::vector< uint8_t > & keyple::calypso::command::po::builder::UpdateRecordCmdBuild::getData |
( |
| ) |
const |
- Returns
- the data sent to the PO
◆ getRecordNumber()
uint8_t keyple::calypso::command::po::builder::UpdateRecordCmdBuild::getRecordNumber |
( |
| ) |
const |
- Returns
- the number of the accessed record
◆ getSfi()
uint8_t keyple::calypso::command::po::builder::UpdateRecordCmdBuild::getSfi |
( |
| ) |
const |
- Returns
- the SFI of the accessed file
◆ isSessionBufferUsed()
bool keyple::calypso::command::po::builder::UpdateRecordCmdBuild::isSessionBufferUsed |
( |
| ) |
const |
|
override |
This command can modify the contents of the PO in session and therefore uses the session buffer.
- Returns
- true
The documentation for this class was generated from the following files: