Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | List of all members
keyple::calypso::command::po::builder::security::VerifyPinCmdBuild Class Reference

#include <VerifyPinCmdBuild.h>

Inherits keyple::calypso::command::po::AbstractPoCommandBuilder< VerifyPinRespPars >.

Public Member Functions

 VerifyPinCmdBuild (const PoClass &poClass, const PinTransmissionMode &pinTransmissionMode, const std::vector< uint8_t > &pin)
 
 VerifyPinCmdBuild (const PoClass &poClass)
 
std::shared_ptr< VerifyPinRespParscreateResponseParser (std::shared_ptr< ApduResponse > apduResponse) override
 
virtual bool isSessionBufferUsed () const override
 
bool isReadCounterOnly () const
 
- Public Member Functions inherited from keyple::calypso::command::po::AbstractPoCommandBuilder< VerifyPinRespPars >
 AbstractPoCommandBuilder (std::shared_ptr< CalypsoPoCommand > commandRef, std::shared_ptr< ApduRequest > request)
 
virtual ~AbstractPoCommandBuilder ()=default
 
virtual const std::shared_ptr< SeCommandgetCommandRef () const override
 
virtual bool isSessionBufferUsed () const=0
 
- 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::po::AbstractPoCommandBuilder< VerifyPinRespPars >
const std::shared_ptr< LoggermLogger
 
- Protected Attributes inherited from keyple::core::command::AbstractApduCommandBuilder
const std::shared_ptr< SeCommandmCommandRef
 
std::shared_ptr< ApduRequestmRequest
 

Constructor & Destructor Documentation

◆ VerifyPinCmdBuild() [1/2]

keyple::calypso::command::po::builder::security::VerifyPinCmdBuild::VerifyPinCmdBuild ( const PoClass poClass,
const PinTransmissionMode pinTransmissionMode,
const std::vector< uint8_t > &  pin 
)

Verify the PIN

Parameters
poClassindicates which CLA byte should be used for the Apdu
pinTransmissionModedefines the way the PIN code is transmitted: in clear or encrypted form.
pinthe PIN data. The PIN is always 4-byte long here, even in the case of a encrypted transmission (
See also
setCipheredPinData).

◆ VerifyPinCmdBuild() [2/2]

keyple::calypso::command::po::builder::security::VerifyPinCmdBuild::VerifyPinCmdBuild ( const PoClass poClass)
explicit

Alternate builder dedicated to the reading of the wrong presentation counter

Parameters
poClassindicates which CLA byte should be used for the Apdu

Member Function Documentation

◆ createResponseParser()

std::shared_ptr< VerifyPinRespPars > keyple::calypso::command::po::builder::security::VerifyPinCmdBuild::createResponseParser ( 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::po::AbstractPoCommandBuilder< VerifyPinRespPars >.

◆ isReadCounterOnly()

bool keyple::calypso::command::po::builder::security::VerifyPinCmdBuild::isReadCounterOnly ( ) const

Indicates if the command is used to read the attempt counter only

Returns
true if the command is used to read the attempt counter

◆ isSessionBufferUsed()

bool keyple::calypso::command::po::builder::security::VerifyPinCmdBuild::isSessionBufferUsed ( ) const
overridevirtual

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