LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A Access informations. Describe key used of authentication and access rights for a specific or a group of operati. More...
#include <accessinfo.hpp>
Public Member Functions | |
AccessInfo () | |
Constructor. | |
virtual | ~AccessInfo ()=default |
virtual void | generateInfos ()=0 |
Generate pseudo-random access informations. | |
virtual std::string | getCardType () const =0 |
Get the card type for this access infos. | |
virtual bool | operator== (const AccessInfo &ai) const |
Equality operator. | |
bool | operator!= (const AccessInfo &ai) const |
Inequality operator. | |
![]() | |
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. | |
Static Public Member Functions | |
static std::string | generateSimpleKey (size_t keySize) |
Generate a key data. | |
static std::string | generateSimpleDESKey (size_t keySize) |
Generate a DES key data. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
static unsigned long long | atoull (const std::string &str) |
A Access informations. Describe key used of authentication and access rights for a specific or a group of operati.
logicalaccess::AccessInfo::AccessInfo | ( | ) |
Constructor.
|
virtualdefault |
|
pure virtual |
Generate pseudo-random access informations.
Implemented in logicalaccess::DESFireAccessInfo, logicalaccess::EPassAccessInfo, logicalaccess::MifareAccessInfo, logicalaccess::MifareUltralightAccessInfo, logicalaccess::MifareUltralightCAccessInfo, and logicalaccess::TopazAccessInfo.
|
static |
Generate a DES key data.
seed | Seed used for random numbers. |
keySize | The key size. |
|
static |
Generate a key data.
seed | Seed used for random numbers. |
keySize | The key size. |
|
pure virtual |
Get the card type for this access infos.
Implemented in logicalaccess::DESFireAccessInfo, logicalaccess::EPassAccessInfo, logicalaccess::MifareAccessInfo, logicalaccess::MifarePlusSL1AccessInfo, logicalaccess::MifareUltralightAccessInfo, logicalaccess::MifareUltralightCAccessInfo, and logicalaccess::TopazAccessInfo.
|
inline |
Inequality operator.
ai | Access infos to compare. |
|
virtual |
Equality operator.
ai | Access infos to compare. |
Reimplemented in logicalaccess::DESFireAccessInfo, logicalaccess::MifareAccessInfo, logicalaccess::MifareUltralightAccessInfo, logicalaccess::MifareUltralightCAccessInfo, and logicalaccess::TopazAccessInfo.