![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CmdSamCardCipherPin.h>
Public Member Functions | |
CmdSamCardCipherPin (const CalypsoSam::ProductType productType, const uint8_t cipheringKif, const uint8_t cipheringKvc, const std::vector< uint8_t > ¤tPin, const std::vector< uint8_t > &newPin) | |
const std::vector< uint8_t > | getCipheredData () const |
const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
AbstractSamCommand (const CalypsoSamCommand &commandRef) | |
const CalypsoSamCommand & | getCommandRef () const override |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final |
AbstractSamCommand & | setApduResponse (const std::shared_ptr< ApduResponseApi > apduResponse) override |
void | checkStatus () override |
![]() | |
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< ApduRequestAdapter > | getApduRequest () 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 const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE = initStatusTable() |
![]() | |
static const std::map< const int, const std::shared_ptr< StatusProperties > > | STATUS_TABLE |
(package-private)
Builds the Card Cipher PIN APDU command.
Definition at line 37 of file CmdSamCardCipherPin.h.
keyple::card::calypso::CmdSamCardCipherPin::CmdSamCardCipherPin | ( | const CalypsoSam::ProductType | productType, |
const uint8_t | cipheringKif, | ||
const uint8_t | cipheringKvc, | ||
const std::vector< uint8_t > & | currentPin, | ||
const std::vector< uint8_t > & | newPin | ||
) |
(package-private)
Instantiates a new CmdSamCardCipherPin and generate the ciphered data for a "Verify PIN" or Change PIN card 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.
productType | the SAM product type. |
cipheringKif | the KIF of the key used to encipher the PIN data. |
cipheringKvc | the KVC of 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) |
Definition at line 40 of file CmdSamCardCipherPin.cpp.
const std::vector< uint8_t > keyple::card::calypso::CmdSamCardCipherPin::getCipheredData | ( | ) | const |
(package-private)
Gets the 8 bytes of ciphered data.
Definition at line 83 of file CmdSamCardCipherPin.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractSamCommand.
Definition at line 114 of file CmdSamCardCipherPin.cpp.