LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
osdpreaderunitconfiguration.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_OSDPREADERUNITCONFIGURATION_HPP
8#define LOGICALACCESS_OSDPREADERUNITCONFIGURATION_HPP
9
11#include <logicalaccess/plugins/readers/osdp/lla_readers_osdp_api.hpp>
13
14namespace logicalaccess
15{
19class LLA_READERS_OSDP_API OSDPReaderUnitConfiguration : public ReaderUnitConfiguration
20{
21 public:
26
31
35 void resetConfiguration() override;
36
41 void serialize(boost::property_tree::ptree &parentNode) override;
42
47 void unSerialize(boost::property_tree::ptree &node) override;
48
53 std::string getDefaultXmlNodeName() const override;
54
59 unsigned char getRS485Address() const;
60
65 void setRS485Address(unsigned char address);
66
71 bool getVisualFeedback() const;
72
77 void setVisualFeedback(bool enabled);
78
83 bool getInstallMode() const;
84
89 void setInstallMode(bool installMode);
90
95 bool getTransparentMode() const;
96
101 void setTransparentMode(bool transparentMode);
102
103
108 std::shared_ptr<AES128Key> getMasterKey() const;
109
114 void setMasterKey(std::shared_ptr<AES128Key> key);
115
116 std::shared_ptr<AES128Key> getSCBKKey() const;
117
118 void setSCBKKey(std::shared_ptr<AES128Key> key);
119
120 std::shared_ptr<AES128Key> getSCBKDKey() const;
121
122 void setSCBKDKey(std::shared_ptr<AES128Key> key);
123
124 protected:
128 unsigned char d_rs485Address;
129
134
139
144
148 std::shared_ptr<AES128Key> d_master_key_aes;
149
150 std::shared_ptr<AES128Key> d_scbk_key_aes;
151
152 std::shared_ptr<AES128Key> d_scbk_d_key_aes;
153};
154}
155
156#endif
AES128 key.
The OSDP reader unit configuration base class.
Definition: osdpreaderunitconfiguration.hpp:20
std::shared_ptr< AES128Key > d_master_key_aes
The key used for AES enciphering.
Definition: osdpreaderunitconfiguration.hpp:148
bool d_visualFeedback
The visual feedback, true/false for enabled/disabled.
Definition: osdpreaderunitconfiguration.hpp:143
std::shared_ptr< AES128Key > d_scbk_key_aes
Definition: osdpreaderunitconfiguration.hpp:150
bool d_installMode
Install mode, true/false for install mode (= communication encryption not mandatory).
Definition: osdpreaderunitconfiguration.hpp:133
bool d_transparentMode
Transparent mode, true (Mode-01) or false (Mode-00).
Definition: osdpreaderunitconfiguration.hpp:138
unsigned char d_rs485Address
The reader RS485 address (if communication type RS485 used).
Definition: osdpreaderunitconfiguration.hpp:128
std::shared_ptr< AES128Key > d_scbk_d_key_aes
Definition: osdpreaderunitconfiguration.hpp:152
The reader unit configuration base class. Describe the configuration for a reader unit.
Definition: readerunitconfiguration.hpp:20
Definition: asn1.hpp:9
Reader unit configuration.