LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A default PC/SC reader/card adapter class. More...
#include <pcscreadercardadapter.hpp>
Public Member Functions | |
PCSCReaderCardAdapter () | |
virtual | ~PCSCReaderCardAdapter () |
Destructor. | |
![]() | |
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) |
![]() | |
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< DataTransport > | getDataTransport () 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< ResultChecker > | getResultChecker () const |
Get the result checker. | |
virtual void | setResultChecker (std::shared_ptr< ResultChecker > checker) |
Set the result checker. | |
Additional Inherited Members | |
![]() | |
std::shared_ptr< DataTransport > | d_dataTransport |
The data transport. | |
std::shared_ptr< ResultChecker > | d_ResultChecker |
The result checker. | |
A default PC/SC reader/card adapter class.
logicalaccess::PCSCReaderCardAdapter::PCSCReaderCardAdapter | ( | ) |
\ brief Constructor.
|
virtual |
Destructor.