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

The GenericTag access control card service class. More...

#include <generictagaccesscontrolcardservice.hpp>

Inheritance diagram for logicalaccess::GenericTagAccessControlCardService:
logicalaccess::AccessControlCardService logicalaccess::CardService

Public Member Functions

 GenericTagAccessControlCardService (std::shared_ptr< Chip > chip)
 Constructor.
 
 ~GenericTagAccessControlCardService ()
 Destructor.
 
std::string getCSType () override
 
std::shared_ptr< FormatreadFormat (std::shared_ptr< Format > format, std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse) override
 Read format from the card.
 
bool writeFormat (std::shared_ptr< Format > format, std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, std::shared_ptr< AccessInfo > aiToWrite) override
 Write format to the card.
 
std::shared_ptr< GenericTagChipgetGenericTagChip () const
 
- Public Member Functions inherited from logicalaccess::AccessControlCardService
 AccessControlCardService (std::shared_ptr< Chip > chip)
 Constructor.
 
virtual ~AccessControlCardService ()
 Destructor.
 
std::string getCSType () override
 
virtual std::shared_ptr< FormatreadFormat (std::shared_ptr< Format > format, std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse)
 Read format from the card.
 
SignatureResult IKS_getPayloadSignature () const
 
virtual bool writeFormat (std::shared_ptr< Format > format, std::shared_ptr< Location > location, std::shared_ptr< AccessInfo > aiToUse, std::shared_ptr< AccessInfo > aiToWrite)
 Write format to the card.
 
virtual FormatList getSupportedFormatList ()
 Get the supported format list.
 
FormatList getHIDWiegandFormatList () const
 Get the HID Wiegand format list.
 
virtual ByteVector getPACSBits (PACS_EXTRACTION_MODE)
 
virtual void writePACSBit (const ByteVector &pacsbits)
 
- Public Member Functions inherited from logicalaccess::CardService
virtual ~CardService ()=default
 
 CardService (std::shared_ptr< Chip > chip, CardServiceType serviceType)
 Constructor.
 
virtual std::string getCSType ()=0
 
std::shared_ptr< ChipgetChip () const
 
virtual CardServiceType getServiceType () const
 Get the card service type.
 

Additional Inherited Members

- Static Public Attributes inherited from logicalaccess::AccessControlCardService
static constexpr const CardServiceType service_type_ = CST_ACCESS_CONTROL
 
- Protected Attributes inherited from logicalaccess::AccessControlCardService
SignatureResult last_signature_
 
- Protected Attributes inherited from logicalaccess::CardService
std::shared_ptr< Chipd_chip
 Chip object.
 
CardServiceType d_serviceType
 Card service type.
 

Detailed Description

The GenericTag access control card service class.

Constructor & Destructor Documentation

◆ GenericTagAccessControlCardService()

logicalaccess::GenericTagAccessControlCardService::GenericTagAccessControlCardService ( std::shared_ptr< Chip chip)
explicit

Constructor.

Parameters
chipThe chip.

◆ ~GenericTagAccessControlCardService()

logicalaccess::GenericTagAccessControlCardService::~GenericTagAccessControlCardService ( )

Destructor.

Member Function Documentation

◆ getCSType()

std::string logicalaccess::GenericTagAccessControlCardService::getCSType ( )
inlineoverridevirtual

◆ getGenericTagChip()

std::shared_ptr< GenericTagChip > logicalaccess::GenericTagAccessControlCardService::getGenericTagChip ( ) const
inline

◆ readFormat()

std::shared_ptr< Format > logicalaccess::GenericTagAccessControlCardService::readFormat ( std::shared_ptr< Format format,
std::shared_ptr< Location location,
std::shared_ptr< AccessInfo aiToUse 
)
overridevirtual

Read format from the card.

Parameters
formatThe format to read.
locationThe format location.
aiToUseThe key's informations to use.
Returns
The format read on success, null otherwise.

Reimplemented from logicalaccess::AccessControlCardService.

◆ writeFormat()

bool logicalaccess::GenericTagAccessControlCardService::writeFormat ( std::shared_ptr< Format format,
std::shared_ptr< Location location,
std::shared_ptr< AccessInfo aiToUse,
std::shared_ptr< AccessInfo aiToWrite 
)
overridevirtual

Write format to the card.

Parameters
formatThe format to write.
locationThe format location.
aiToUseThe key's informations to use.
aiToWriteThe key's informations to write.
Returns
True on success, false otherwise.

Reimplemented from logicalaccess::AccessControlCardService.


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