LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
logicalaccess::ISO7816FuzzingReaderCardAdapter Class Reference

A default ISO7816 Fuzzing reader/card adapter class. More...

#include <iso7816fuzzingreadercardadapter.hpp>

Inheritance diagram for logicalaccess::ISO7816FuzzingReaderCardAdapter:
logicalaccess::ISO7816ReaderCardAdapter logicalaccess::ReaderCardAdapter

Public Member Functions

 ISO7816FuzzingReaderCardAdapter ()
 
ByteVector sendCommand (const ByteVector &command, long timeout=-1) override
 Send a command to the reader.
 
- Public Member Functions inherited from logicalaccess::ISO7816ReaderCardAdapter
virtual ISO7816Response sendAPDUCommand (const ByteVector &data)
 Send an APDU command to the reader.
 
virtual ISO7816Response sendAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2, unsigned char lc, const ByteVector &data, unsigned char le)
 Send an APDU command to the reader.
 
virtual ISO7816Response sendAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2, unsigned char lc, const ByteVector &data)
 Send an APDU command to the reader.
 
virtual ISO7816Response sendAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2, const ByteVector &data)
 Send an APDU command to the reader.
 
virtual ISO7816Response sendAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2, unsigned char lc, unsigned char le)
 Send an APDU command to the reader without data.
 
virtual ISO7816Response sendAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2, unsigned char le)
 Send an APDU command to the reader without data.
 
virtual ISO7816Response sendAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2)
 Send an APDU command to the reader without data.
 
virtual ISO7816Response sendExtendedAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2, unsigned short lc, const ByteVector &data)
 Send an extended APDU command to the reader.
 
virtual ISO7816Response sendExtendedAPDUCommand (unsigned char cla, unsigned char ins, unsigned char p1, unsigned char p2, unsigned short lc, const ByteVector &data, unsigned short le)
 Send an extended APDU command to the reader.
 
ByteVector adaptCommand (const ByteVector &command) override
 Adapt the command to send to the reader.
 
ByteVector adaptAnswer (const ByteVector &answer) override
 Adapt the answer received from the reader.
 
void setCrypto (std::shared_ptr< ISO24727Crypto > crypto)
 
- Public Member Functions inherited from logicalaccess::ReaderCardAdapter
virtual ~ReaderCardAdapter ()
 
 ReaderCardAdapter ()
 
virtual ByteVector adaptCommand (const ByteVector &command)
 Adapt the command to send to the reader.
 
virtual ByteVector adaptAnswer (const ByteVector &answer)
 Adapt the answer received from the reader.
 
std::shared_ptr< DataTransportgetDataTransport () const
 Get the data transport.
 
void setDataTransport (std::shared_ptr< DataTransport > dataTransport)
 Set the data transport.
 
virtual ByteVector sendCommand (const ByteVector &command, long timeout=-1)
 Send a command to the reader.
 
virtual std::shared_ptr< ResultCheckergetResultChecker () const
 Get the result checker.
 
virtual void setResultChecker (std::shared_ptr< ResultChecker > checker)
 Set the result checker.
 

Private Attributes

int currentIndex
 

Static Private Attributes

static int index = 1
 

Additional Inherited Members

- Protected Attributes inherited from logicalaccess::ReaderCardAdapter
std::shared_ptr< DataTransportd_dataTransport
 The data transport.
 
std::shared_ptr< ResultCheckerd_ResultChecker
 The result checker.
 

Detailed Description

A default ISO7816 Fuzzing reader/card adapter class.

Constructor & Destructor Documentation

◆ ISO7816FuzzingReaderCardAdapter()

logicalaccess::ISO7816FuzzingReaderCardAdapter::ISO7816FuzzingReaderCardAdapter ( )

Member Function Documentation

◆ sendCommand()

ByteVector logicalaccess::ISO7816FuzzingReaderCardAdapter::sendCommand ( const ByteVector command,
long  timeout = -1 
)
overridevirtual

Send a command to the reader.

Parameters
commandThe command buffer.
timeoutThe command timeout.
Returns
the result of the command.

Reimplemented from logicalaccess::ReaderCardAdapter.

Member Data Documentation

◆ currentIndex

int logicalaccess::ISO7816FuzzingReaderCardAdapter::currentIndex
private

◆ index

int logicalaccess::ISO7816FuzzingReaderCardAdapter::index = 1
staticprivate

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