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

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

#include <proxaccesscontrolcardservice.hpp>

Inheritance diagram for logicalaccess::ProxAccessControlCardService:
logicalaccess::AccessControlCardService logicalaccess::CardService

Public Member Functions

 ProxAccessControlCardService (std::shared_ptr< Chip > chip)
 Constructor.
 
 ~ProxAccessControlCardService ()
 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.
 
ByteVector getPACSBits () const
 Get the PACS bits of the card.
 
FormatList getSupportedFormatList () override
 Get the supported format list.
 
- 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 Prox access control card service class.

Constructor & Destructor Documentation

◆ ProxAccessControlCardService()

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

Constructor.

Parameters
cardProviderThe associated card provider.

◆ ~ProxAccessControlCardService()

logicalaccess::ProxAccessControlCardService::~ProxAccessControlCardService ( )

Destructor.

Member Function Documentation

◆ getCSType()

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

◆ getPACSBits()

ByteVector logicalaccess::ProxAccessControlCardService::getPACSBits ( ) const

Get the PACS bits of the card.

Returns
The PACS bits.

◆ getSupportedFormatList()

FormatList logicalaccess::ProxAccessControlCardService::getSupportedFormatList ( )
overridevirtual

Get the supported format list.

Returns
The format list.

Reimplemented from logicalaccess::AccessControlCardService.

◆ readFormat()

std::shared_ptr< Format > logicalaccess::ProxAccessControlCardService::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::ProxAccessControlCardService::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: