LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
omnikeyxx21readerunitconfiguration.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_OMNIKEYXX21READERUNITCONFIGURATION_HPP
8#define LOGICALACCESS_OMNIKEYXX21READERUNITCONFIGURATION_HPP
9
12
13namespace logicalaccess
14{
18typedef enum {
19 HID_PLAIN = 0x00,
20 HID_DES = 0x40,
21 HID_3DES = 0x80,
22 HID_AUTO = 0xc0
24
28class LLA_READERS_PCSC_API OmnikeyXX21ReaderUnitConfiguration
30{
31 public:
36
41
45 void resetConfiguration() override;
46
51 void serialize(boost::property_tree::ptree &parentNode) override;
52
57 void unSerialize(boost::property_tree::ptree &node) override;
58
63 std::string getDefaultXmlNodeName() const override;
64
70 {
72 }
73
78 bool getUseSecureMode() const;
79
84 void setUseSecureMode(bool use_sm);
85
90 HIDEncryptionMode getEncryptionMode() const;
91
96 void setEncryptionMode(HIDEncryptionMode encryption_mode);
97
102 std::shared_ptr<TripleDESKey> getSecureReadKey() const;
103
108 void setSecureReadKey(std::shared_ptr<TripleDESKey> key);
109
114 std::shared_ptr<TripleDESKey> getSecureWriteKey() const;
115
120 void setSecureWriteKey(std::shared_ptr<TripleDESKey> key);
121
122 protected:
127
131 std::shared_ptr<TripleDESKey> d_secureReadKey;
132
136 std::shared_ptr<TripleDESKey> d_secureWriteKey;
137
142};
143}
144
145#endif
The Omnikey XX21 reader unit configuration base class.
Definition: omnikeyxx21readerunitconfiguration.hpp:30
std::shared_ptr< TripleDESKey > d_secureWriteKey
The custom write key secure mode HID iClass (optional).
Definition: omnikeyxx21readerunitconfiguration.hpp:136
std::shared_ptr< TripleDESKey > d_secureReadKey
The custom read key secure mode HID iClass (optional).
Definition: omnikeyxx21readerunitconfiguration.hpp:131
bool d_useSecureMode
Set if use secure mode.
Definition: omnikeyxx21readerunitconfiguration.hpp:126
PCSCReaderUnitType getPCSCType() const override
Get the PC/SC reader unit configuration type.
Definition: omnikeyxx21readerunitconfiguration.hpp:69
HIDEncryptionMode d_encryptionMode
The encryption mode.
Definition: omnikeyxx21readerunitconfiguration.hpp:141
The PC/SC reader unit configuration base class.
Definition: pcscreaderunitconfiguration.hpp:75
Definition: asn1.hpp:9
HIDEncryptionMode
HID iClass data encryption mode for the secure mode.
Definition: omnikeyxx21readerunitconfiguration.hpp:18
@ HID_3DES
Definition: omnikeyxx21readerunitconfiguration.hpp:21
@ HID_PLAIN
Definition: omnikeyxx21readerunitconfiguration.hpp:19
@ HID_AUTO
Definition: omnikeyxx21readerunitconfiguration.hpp:22
@ HID_DES
Definition: omnikeyxx21readerunitconfiguration.hpp:20
PCSCReaderUnitType
The reader unit types.
Definition: pcscreaderunitconfiguration.hpp:54
@ PCSC_RUT_OMNIKEY_XX21
Definition: pcscreaderunitconfiguration.hpp:56
PC/SC Reader unit configuration.
Triple DES key.