LibLogicalAccess
2.5.0
An Open Source RFID Library
|
The Mifare storage card service base class. More...
#include <mifarestoragecardservice.hpp>
Public Member Functions | |
MifareStorageCardService (std::shared_ptr< Chip > chip) | |
Constructor. | |
virtual | ~MifareStorageCardService () |
Destructor. | |
std::string | getCSType () override |
void | erase (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse) override |
Erase a specific location on the card. | |
void | writeData (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, std::shared_ptr< AccessInfo > aiToWrite, const ByteVector &data, CardBehavior behaviorFlags) override |
Write data on a specific Mifare location, using given Mifare keys. | |
ByteVector | readData (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, size_t length, CardBehavior behaviorFlags) override |
Read data on a specific Mifare location, using given Mifare keys. | |
ByteVector | readDataHeader (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse) override |
Read data header on a specific location, using given keys. | |
![]() | |
StorageCardService (std::shared_ptr< Chip > chip) | |
Constructor. | |
virtual | ~StorageCardService () |
virtual void | erase (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse)=0 |
Erase a specific location on the card. | |
virtual void | writeData (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, std::shared_ptr< AccessInfo > aiToWrite, const ByteVector &data, CardBehavior behaviorFlags)=0 |
Write data on a specific location, using given keys. | |
virtual ByteVector | readData (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, size_t length, CardBehavior behaviorFlags)=0 |
Read data on a specific location, using given keys. | |
virtual ByteVector | readDataHeader (std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse)=0 |
Read data header on a specific location, using given keys. | |
SignatureResult | IKS_getLastReadSignature () |
![]() | |
virtual | ~CardService ()=default |
CardService (std::shared_ptr< Chip > chip, CardServiceType serviceType) | |
Constructor. | |
virtual std::string | getCSType ()=0 |
std::shared_ptr< Chip > | getChip () const |
virtual CardServiceType | getServiceType () const |
Get the card service type. | |
Protected Member Functions | |
std::shared_ptr< MifareChip > | getMifareChip () const |
Additional Inherited Members | |
![]() | |
static constexpr const CardServiceType | service_type_ = CST_STORAGE |
![]() | |
SignatureResult | last_read_signature_ |
![]() | |
std::shared_ptr< Chip > | d_chip |
Chip object. | |
CardServiceType | d_serviceType |
Card service type. | |
The Mifare storage card service base class.
|
explicit |
Constructor.
chip | The chip. |
|
virtual |
Destructor.
|
overridevirtual |
Erase a specific location on the card.
location | The data location. |
aiToUse | The key's informations to use to delete. |
Implements logicalaccess::StorageCardService.
Reimplemented in logicalaccess::MifarePlusSL1StorageCardService.
|
inlineoverridevirtual |
Implements logicalaccess::CardService.
Reimplemented in logicalaccess::MifarePlusSL1StorageCardService.
|
inlineprotected |
|
overridevirtual |
Read data on a specific Mifare location, using given Mifare keys.
location | The data location. |
aiToUse | The key's informations to use for write access. |
data | Will contain data after reading. |
length | to read. |
behaviorFlags | Flags which determines the behavior. |
Implements logicalaccess::StorageCardService.
Reimplemented in logicalaccess::MifarePlusSL1StorageCardService.
|
overridevirtual |
Read data header on a specific location, using given keys.
location | The data location. |
aiToUse | The key's informations to use. |
data | Will contain data after reading. |
dataLength | Data's length to read. |
Implements logicalaccess::StorageCardService.
Reimplemented in logicalaccess::MifarePlusSL1StorageCardService.
|
overridevirtual |
Write data on a specific Mifare location, using given Mifare keys.
location | The data location. |
aiToUse | The key's informations to use for write access. |
aiToWrite | The key's informations to change. |
data | Data to write. |
behaviorFlags | Flags which determines the behavior. |
Implements logicalaccess::StorageCardService.
Reimplemented in logicalaccess::MifarePlusSL1StorageCardService.