LibLogicalAccess
2.5.0
An Open Source RFID Library
|
The OSDP reader unit configuration base class. More...
#include <osdpreaderunitconfiguration.hpp>
Public Member Functions | |
OSDPReaderUnitConfiguration () | |
Constructor. | |
virtual | ~OSDPReaderUnitConfiguration () |
Destructor. | |
void | resetConfiguration () override |
Reset the configuration to default values. | |
void | serialize (boost::property_tree::ptree &parentNode) override |
Serialize the current object to XML. | |
void | unSerialize (boost::property_tree::ptree &node) override |
UnSerialize a XML node to the current object. | |
std::string | getDefaultXmlNodeName () const override |
Get the default Xml Node name for this object. | |
unsigned char | getRS485Address () const |
Get the reader RS485 address. | |
void | setRS485Address (unsigned char address) |
Set the reader RS485 address. | |
bool | getVisualFeedback () const |
Get if visual feedback on card insertion/removal. | |
void | setVisualFeedback (bool enabled) |
Enable/Disable visual feedback on card insertion/removal. | |
bool | getInstallMode () const |
Get if install mode is enabled. | |
void | setInstallMode (bool installMode) |
Set the install mode. | |
bool | getTransparentMode () const |
Get if using transparent mode, false otherwise. | |
void | setTransparentMode (bool transparentMode) |
Set if using transparent mode, false otherwise. | |
std::shared_ptr< AES128Key > | getMasterKey () const |
Get the key used for AES enciphering. | |
void | setMasterKey (std::shared_ptr< AES128Key > key) |
Set the key used for AES enciphering. | |
std::shared_ptr< AES128Key > | getSCBKKey () const |
void | setSCBKKey (std::shared_ptr< AES128Key > key) |
std::shared_ptr< AES128Key > | getSCBKDKey () const |
void | setSCBKDKey (std::shared_ptr< AES128Key > key) |
![]() | |
ReaderUnitConfiguration (std::string rpt) | |
Constructor. | |
virtual | ~ReaderUnitConfiguration () |
Destructor. | |
std::string | getRPType () const |
Get the reader provider type. | |
virtual void | resetConfiguration ()=0 |
Reset the configuration to the default one. | |
![]() | |
virtual | ~XmlSerializable ()=default |
virtual std::string | serialize () |
Serialize object to Xml Node string. | |
virtual std::string | serializeWithHeaders () |
Serialize object to Xml Node string, with xml headers. | |
virtual void | serialize (boost::property_tree::ptree &parentNode)=0 |
Serialize object to Xml Node. | |
virtual void | serializeToFile (const std::string &filename) |
Serialize object to a Xml file. | |
virtual void | unSerialize (boost::property_tree::ptree &node)=0 |
UnSerialize object from a Xml Node. | |
virtual void | unSerialize (const std::string &xmlstring, const std::string &rootNode) |
UnSerialize object from a Xml Node string. | |
virtual void | unSerialize (std::istream &is, const std::string &rootNode) |
UnSerialize object from a Xml node. | |
virtual void | unSerialize (boost::property_tree::ptree &node, const std::string &rootNode) |
UnSerialize object from a Xml node. | |
virtual void | unSerializeFromFile (const std::string &filename) |
UnSerialize object from a Xml file. | |
virtual std::string | getDefaultXmlNodeName () const =0 |
Get the default Xml Node name for this object. | |
Protected Attributes | |
unsigned char | d_rs485Address |
The reader RS485 address (if communication type RS485 used). | |
bool | d_installMode |
Install mode, true/false for install mode (= communication encryption not mandatory). | |
bool | d_transparentMode |
Transparent mode, true (Mode-01) or false (Mode-00). | |
bool | d_visualFeedback |
The visual feedback, true/false for enabled/disabled. | |
std::shared_ptr< AES128Key > | d_master_key_aes |
The key used for AES enciphering. | |
std::shared_ptr< AES128Key > | d_scbk_key_aes |
std::shared_ptr< AES128Key > | d_scbk_d_key_aes |
![]() | |
std::string | d_readerProviderType |
The associated reader provider type for the reader unit configuration. | |
Additional Inherited Members | |
![]() | |
static std::string | removeXmlDeclaration (const std::string &xmlstring) |
Remove Xml declaration from a xml string. | |
static ByteVector | formatHexString (std::string hexstr) |
Format hex string to hex string with space. | |
![]() | |
static unsigned long long | atoull (const std::string &str) |
The OSDP reader unit configuration base class.
logicalaccess::OSDPReaderUnitConfiguration::OSDPReaderUnitConfiguration | ( | ) |
Constructor.
|
virtual |
Destructor.
|
overridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
bool logicalaccess::OSDPReaderUnitConfiguration::getInstallMode | ( | ) | const |
Get if install mode is enabled.
enabled | True if install mode is enabled, false otherwise. |
std::shared_ptr< AES128Key > logicalaccess::OSDPReaderUnitConfiguration::getMasterKey | ( | ) | const |
Get the key used for AES enciphering.
unsigned char logicalaccess::OSDPReaderUnitConfiguration::getRS485Address | ( | ) | const |
Get the reader RS485 address.
std::shared_ptr< AES128Key > logicalaccess::OSDPReaderUnitConfiguration::getSCBKDKey | ( | ) | const |
std::shared_ptr< AES128Key > logicalaccess::OSDPReaderUnitConfiguration::getSCBKKey | ( | ) | const |
bool logicalaccess::OSDPReaderUnitConfiguration::getTransparentMode | ( | ) | const |
Get if using transparent mode, false otherwise.
enabled | True if transparent mode is enabled, false otherwise. |
bool logicalaccess::OSDPReaderUnitConfiguration::getVisualFeedback | ( | ) | const |
Get if visual feedback on card insertion/removal.
enabled | True if enable visual feedback is enabled, false otherwise. |
|
overridevirtual |
Reset the configuration to default values.
Implements logicalaccess::ReaderUnitConfiguration.
|
overridevirtual |
Serialize the current object to XML.
parentNode | The parent node. |
Implements logicalaccess::XmlSerializable.
void logicalaccess::OSDPReaderUnitConfiguration::setInstallMode | ( | bool | installMode | ) |
Set the install mode.
installMode | True to enable install mode, false otherwise. |
void logicalaccess::OSDPReaderUnitConfiguration::setMasterKey | ( | std::shared_ptr< AES128Key > | key | ) |
Set the key used for AES enciphering.
key | The key. |
void logicalaccess::OSDPReaderUnitConfiguration::setRS485Address | ( | unsigned char | address | ) |
Set the reader RS485 address.
address | The RS485 address. |
void logicalaccess::OSDPReaderUnitConfiguration::setSCBKDKey | ( | std::shared_ptr< AES128Key > | key | ) |
void logicalaccess::OSDPReaderUnitConfiguration::setSCBKKey | ( | std::shared_ptr< AES128Key > | key | ) |
void logicalaccess::OSDPReaderUnitConfiguration::setTransparentMode | ( | bool | transparentMode | ) |
Set if using transparent mode, false otherwise.
transparentMode | True to enable transparent mode, false otherwise. |
void logicalaccess::OSDPReaderUnitConfiguration::setVisualFeedback | ( | bool | enabled | ) |
Enable/Disable visual feedback on card insertion/removal.
enabled | True to enable visual feedback, false otherwise. |
|
overridevirtual |
UnSerialize a XML node to the current object.
node | The XML node. |
Implements logicalaccess::XmlSerializable.
|
protected |
Install mode, true/false for install mode (= communication encryption not mandatory).
|
protected |
The key used for AES enciphering.
|
protected |
The reader RS485 address (if communication type RS485 used).
|
protected |
|
protected |
|
protected |
Transparent mode, true (Mode-01) or false (Mode-00).
|
protected |
The visual feedback, true/false for enabled/disabled.