![]() |
Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
|
#include <CmdCardVerifyPin.h>
Public Member Functions | |
CmdCardVerifyPin (const CalypsoCardClass calypsoCardClass, const bool encryptPinTransmission, const std::vector< uint8_t > &pin) | |
CmdCardVerifyPin (const CalypsoCardClass calypsoCardClass) | |
bool | isSessionBufferUsed () const override |
bool | isReadCounterOnly () const |
int | getRemainingAttemptCounter () const |
const std::map< const int, const std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
AbstractCardCommand (const CalypsoCardCommand &commandRef) | |
const CalypsoCardCommand & | getCommandRef () const override |
const CalypsoApduCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final |
AbstractCardCommand & | 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 |
(package-private)
Builds the "Verify PIN" command.
Definition at line 46 of file CmdCardVerifyPin.h.
keyple::card::calypso::CmdCardVerifyPin::CmdCardVerifyPin | ( | const CalypsoCardClass | calypsoCardClass, |
const bool | encryptPinTransmission, | ||
const std::vector< uint8_t > & | pin | ||
) |
(package-private)
Verify the PIN
calypsoCardClass | indicates which CLA byte should be used for the Apdu. |
encryptPinTransmission | true if the PIN transmission has to be encrypted. |
pin | the PIN data. The PIN is always 4-byte long here, even in the case of an encrypted transmission ( |
Definition at line 43 of file CmdCardVerifyPin.cpp.
keyple::card::calypso::CmdCardVerifyPin::CmdCardVerifyPin | ( | const CalypsoCardClass | calypsoCardClass | ) |
(package-private)
Alternate command dedicated to the reading of the wrong presentation counter
calypsoCardClass | indicates which CLA byte should be used for the Apdu. |
Definition at line 68 of file CmdCardVerifyPin.cpp.
int keyple::card::calypso::CmdCardVerifyPin::getRemainingAttemptCounter | ( | ) | const |
(package-private)
Determine the value of the attempt counter from the status word
Definition at line 93 of file CmdCardVerifyPin.cpp.
|
overridevirtual |
(package-private)
Returns the internal status table
Reimplemented from keyple::card::calypso::AbstractApduCommand.
Definition at line 157 of file CmdCardVerifyPin.cpp.
bool keyple::card::calypso::CmdCardVerifyPin::isReadCounterOnly | ( | ) | const |
(package-private)
Indicates if the command is used to read the attempt counter only
Definition at line 88 of file CmdCardVerifyPin.cpp.
|
overridevirtual |
(package-private)
Indicates if the session buffer is used when executing this command.Allows the management of the overflow of this buffer.
Implements keyple::card::calypso::AbstractCardCommand.
Definition at line 83 of file CmdCardVerifyPin.cpp.