Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <CardCipherPinCmdBuild.h>
Inherits keyple::calypso::command::sam::AbstractSamCommandBuilder< CardCipherPinRespPars >.
Public Member Functions | |
CardCipherPinCmdBuild (const SamRevision &revision, const std::shared_ptr< KeyReference > cipheringKey, const std::vector< uint8_t > ¤tPin, const std::vector< uint8_t > &newPin) | |
std::shared_ptr< CardCipherPinRespPars > | createResponseParser (std::shared_ptr< ApduResponse > apduResponse) override |
![]() | |
AbstractSamCommandBuilder (const std::shared_ptr< SeCommand > reference, const std::shared_ptr< ApduRequest > request) | |
virtual | ~AbstractSamCommandBuilder ()=default |
const std::shared_ptr< SeCommand > | getCommandRef () const override |
![]() | |
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 |
![]() | |
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< SeCommand > | getCommandRef () const |
virtual const std::string & | getName () const |
virtual const std::shared_ptr< ApduRequest > | getApduRequest () const |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
SamRevision | mDefaultRevision |
![]() | |
const std::shared_ptr< SeCommand > | mCommandRef |
std::shared_ptr< ApduRequest > | mRequest |
Builder for the SAM Card Cipher PIN APDU command.
keyple::calypso::command::sam::builder::security::CardCipherPinCmdBuild::CardCipherPinCmdBuild | ( | const SamRevision & | revision, |
const std::shared_ptr< KeyReference > | cipheringKey, | ||
const std::vector< uint8_t > & | currentPin, | ||
const std::vector< uint8_t > & | newPin | ||
) |
Instantiates a new CardCipherPinCmdBuild and generate the ciphered data for a Verify PIN or Change PIN PO command.
In the case of a PIN verification, only the current PIN must be provided (newPin must be set to null).
In the case of a PIN update, the current and new PINs must be provided.
revision | of the SAM |
cipheringKey | the key used to encipher the PIN data |
currentPin | the current PIN (a 4-byte byte array) |
newPin | the new PIN (a 4-byte byte array if the operation in progress is a PIN update, null if the operation in progress is a PIN verification) |
|
overridevirtual |
Create the response parser matching the builder
apduResponse | the response data from the SE |
Implements keyple::calypso::command::sam::AbstractSamCommandBuilder< CardCipherPinRespPars >.