|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A reader/card adapter base class. It provide an abstraction layer between the card and the reader to send chip command. More...
#include <readercardadapter.hpp>
Public Member Functions | |
| 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. | |
Protected Attributes | |
| std::shared_ptr< DataTransport > | d_dataTransport |
| The data transport. | |
| std::shared_ptr< ResultChecker > | d_ResultChecker |
| The result checker. | |
A reader/card adapter base class. It provide an abstraction layer between the card and the reader to send chip command.
|
inlinevirtual |
| logicalaccess::ReaderCardAdapter::ReaderCardAdapter | ( | ) |
|
virtual |
Adapt the answer received from the reader.
| answer | The answer received. |
Reimplemented in logicalaccess::ISO7816ReaderCardAdapter, logicalaccess::DeisterReaderCardAdapter, logicalaccess::ElatecReaderCardAdapter, logicalaccess::GunneboReaderCardAdapter, logicalaccess::ISO7816OK5553ReaderCardAdapter, logicalaccess::OK5553ReaderCardAdapter, logicalaccess::MifarePlusACSACR1222L_SL1Commands::GenericSessionGuard::Adapter, logicalaccess::MifarePlusOmnikeyXX21SL1Commands::GenericSessionGuard::Adapter, logicalaccess::EncapsulateGuard::Adapter, logicalaccess::ID3ReaderUnit::APDUWrapperGuard::Adapter, and logicalaccess::STidSTRReaderCardAdapter.
|
virtual |
Adapt the command to send to the reader.
| command | The command to send. |
Reimplemented in logicalaccess::ISO7816ReaderCardAdapter, logicalaccess::DeisterReaderCardAdapter, logicalaccess::ElatecReaderCardAdapter, logicalaccess::GunneboReaderCardAdapter, logicalaccess::ISO7816OK5553ReaderCardAdapter, logicalaccess::OK5553ReaderCardAdapter, logicalaccess::MifarePlusACSACR1222L_SL1Commands::GenericSessionGuard::Adapter, logicalaccess::MifarePlusOmnikeyXX21SL1Commands::GenericSessionGuard::Adapter, logicalaccess::EncapsulateGuard::Adapter, logicalaccess::ID3ReaderUnit::APDUWrapperGuard::Adapter, and logicalaccess::STidSTRReaderCardAdapter.
|
inline |
Get the data transport.
|
inlinevirtual |
Get the result checker.
|
virtual |
Send a command to the reader.
| command | The command buffer. |
| timeout | The command timeout. |
Reimplemented in logicalaccess::ElatecReaderCardAdapter, logicalaccess::ISO7816FuzzingReaderCardAdapter, logicalaccess::OSDPReaderCardAdapter, and logicalaccess::STidSTRReaderCardAdapter.
|
inline |
Set the data transport.
| unit | The data transport. |
|
inlinevirtual |
Set the result checker.
| unit | The result checker. |
|
protected |
The data transport.
|
protected |
The result checker.
1.9.6