LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
stidstrreaderunitconfiguration.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_STIDSTRREADERUNITCONFIGURATION_HPP
8#define LOGICALACCESS_STIDSTRREADERUNITCONFIGURATION_HPP
9
13#include <logicalaccess/plugins/readers/stidstr/lla_readers_stidstr_api.hpp>
14
15namespace logicalaccess
16{
20typedef enum {
21 STID_RS232 = 0x00,
22 STID_RS485 = 0x01
24
28typedef enum {
34 STID_CM_RESERVED = 0x04
36
40class LLA_READERS_STIDSTR_API STidSTRReaderUnitConfiguration
42{
43 public:
48
53
57 void resetConfiguration() override;
58
63 void serialize(boost::property_tree::ptree &parentNode) override;
64
69 void unSerialize(boost::property_tree::ptree &node) override;
70
75 std::string getDefaultXmlNodeName() const override;
76
81 unsigned char getRS485Address() const;
82
87 void setRS485Address(unsigned char address);
88
93 STidCommunicationType getCommunicationType() const;
94
99 void setCommunicationType(STidCommunicationType ctype);
100
105 STidCommunicationMode getCommunicationMode() const;
106
111 void setCommunicationMode(STidCommunicationMode cmode);
112
117 std::shared_ptr<HMAC1Key> getHMACKey() const;
118
123 void setHMACKey(std::shared_ptr<HMAC1Key> key);
124
129 std::shared_ptr<AES128Key> getAESKey() const;
130
135 void setAESKey(std::shared_ptr<AES128Key> key);
136
137 bool getPN532Direct() const;
138
139 void setPN532Direct(bool direct);
140
141 protected:
145 unsigned char d_rs485Address;
146
151
156
160 std::shared_ptr<HMAC1Key> d_key_hmac;
161
165 std::shared_ptr<AES128Key> d_key_aes;
166
171};
172}
173
174#endif
AES128 key.
The PC/SC reader unit configuration base class.
Definition: iso7816readerunitconfiguration.hpp:24
The STidSTR reader unit configuration base class.
Definition: stidstrreaderunitconfiguration.hpp:42
std::shared_ptr< AES128Key > d_key_aes
The key used for AES enciphering.
Definition: stidstrreaderunitconfiguration.hpp:165
bool d_pn532_direct
Direct communication with the internal PN532 component.
Definition: stidstrreaderunitconfiguration.hpp:170
STidCommunicationType d_communicationType
The reader communication type.
Definition: stidstrreaderunitconfiguration.hpp:150
std::shared_ptr< HMAC1Key > d_key_hmac
The key used for HMAC signature.
Definition: stidstrreaderunitconfiguration.hpp:160
unsigned char d_rs485Address
The reader RS485 address (if communication type RS485 used).
Definition: stidstrreaderunitconfiguration.hpp:145
STidCommunicationMode d_communicationMode
The reader communication mode (security objective).
Definition: stidstrreaderunitconfiguration.hpp:155
HMAC1 key.
Definition: asn1.hpp:9
STidCommunicationType
The STidSRT communication type.
Definition: stidstrreaderunitconfiguration.hpp:20
@ STID_RS485
Definition: stidstrreaderunitconfiguration.hpp:22
@ STID_RS232
Definition: stidstrreaderunitconfiguration.hpp:21
STidCommunicationMode
The STidSRT communication mode.
Definition: stidstrreaderunitconfiguration.hpp:28
@ STID_CM_PLAIN
Definition: stidstrreaderunitconfiguration.hpp:29
@ STID_CM_CIPHERED_AND_SIGNED
Definition: stidstrreaderunitconfiguration.hpp:32
@ STID_CM_CIPHERED
Definition: stidstrreaderunitconfiguration.hpp:31
@ STID_CM_SIGNED
Definition: stidstrreaderunitconfiguration.hpp:30
@ STID_CM_RESERVED
Definition: stidstrreaderunitconfiguration.hpp:34