LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
samkeystorage.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_SAMKEYSTORAGE_HPP
8#define LOGICALACCESS_SAMKEYSTORAGE_HPP
9
11
12namespace logicalaccess
13{
17class LLA_CORE_API SAMKeyStorage : public KeyStorage
18{
19 public:
24
25 virtual ~SAMKeyStorage() = default;
26
31 KeyStorageType getType() const override;
32
38 void serialize(boost::property_tree::ptree &parentNode) override;
39
44 void unSerialize(boost::property_tree::ptree &node) override;
45
50 std::string getDefaultXmlNodeName() const override;
51
52 unsigned char getKeySlot() const
53 {
54 return d_key_slot;
55 }
56
57 void setKeySlot(unsigned char key_slot)
58 {
59 d_key_slot = key_slot;
60 }
61
62 bool getDumpKey() const
63 {
64 return d_dumpKey;
65 }
66
67 void setDumpKey(bool dumpKey)
68 {
69 d_dumpKey = dumpKey;
70 }
71
72 protected:
76 unsigned char d_key_slot;
77
79};
80}
81
82#endif /* LOGICALACCESS_SAMKEYSTORAGE_HPP */
A Key storage base class. The key storage specify where the key is stored in memory....
Definition: keystorage.hpp:31
A SAM key storage class.
Definition: samkeystorage.hpp:18
bool getDumpKey() const
Definition: samkeystorage.hpp:62
void setDumpKey(bool dumpKey)
Definition: samkeystorage.hpp:67
unsigned char getKeySlot() const
Definition: samkeystorage.hpp:52
unsigned char d_key_slot
The key slot. Optional for most PICC operation, automatically detected.
Definition: samkeystorage.hpp:76
virtual ~SAMKeyStorage()=default
bool d_dumpKey
Definition: samkeystorage.hpp:78
void setKeySlot(unsigned char key_slot)
Definition: samkeystorage.hpp:57
Key storage description.
Definition: asn1.hpp:9
KeyStorageType
The key storage types.
Definition: keystorage.hpp:17