LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A DESFire access informations. More...
#include <desfireaccessinfo.hpp>
Public Member Functions | |
DESFireAccessInfo () | |
Constructor. | |
virtual | ~DESFireAccessInfo () |
Destructor. | |
void | generateInfos () override |
Generate pseudo-random DESFire access informations. | |
std::string | getCardType () const override |
Get the card type for this access infos. | |
void | serialize (boost::property_tree::ptree &parentNode) override |
Serialize the current object to XML. | |
void | unSerialize (boost::property_tree::ptree &node) override |
UnSerialize a XML node to the current object. | |
bool | operator== (const AccessInfo &ai) const override |
Equality operator. | |
std::string | getDefaultXmlNodeName () const override |
Get the default Xml Node name for this object. | |
virtual std::string | serialize () |
Serialize object to Xml Node string. | |
virtual void | serialize (boost::property_tree::ptree &parentNode)=0 |
Serialize object to Xml Node. | |
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. | |
![]() | |
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. | |
Public Attributes | |
std::shared_ptr< DESFireKey > | masterCardKey |
The master card key. | |
std::shared_ptr< DESFireKey > | masterApplicationKey |
The master application key. | |
std::shared_ptr< DESFireKey > | readKey |
The read key. | |
std::shared_ptr< DESFireKey > | writeKey |
The write key. | |
unsigned char | readKeyno |
The read key number. | |
unsigned char | writeKeyno |
The write key number. | |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
static unsigned long long | atoull (const std::string &str) |
A DESFire access informations.
logicalaccess::DESFireAccessInfo::DESFireAccessInfo | ( | ) |
Constructor.
|
virtual |
Destructor.
|
overridevirtual |
Generate pseudo-random DESFire access informations.
Implements logicalaccess::AccessInfo.
|
overridevirtual |
Get the card type for this access infos.
Implements logicalaccess::AccessInfo.
|
overridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
|
overridevirtual |
Equality operator.
ai | Access infos to compare. |
Reimplemented from logicalaccess::AccessInfo.
|
virtual |
Serialize object to Xml Node string.
Reimplemented from logicalaccess::XmlSerializable.
|
overridevirtual |
Serialize the current object to XML.
parentNode | The parent node. |
Implements logicalaccess::XmlSerializable.
|
virtual |
Serialize object to Xml Node.
os | The XML stream. |
Implements logicalaccess::XmlSerializable.
|
overridevirtual |
UnSerialize a XML node to the current object.
node | The XML node. |
Implements logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml Node.
node | The Xml node. |
Implements logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml node.
node | The Xml node. |
rootNode | The root node. |
Reimplemented from logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml Node string.
xmlstring | The Xml Node string. |
rootNode | The root node. |
Reimplemented from logicalaccess::XmlSerializable.
|
virtual |
UnSerialize object from a Xml node.
is | The Xml stream. |
rootNode | The root node. |
Reimplemented from logicalaccess::XmlSerializable.
std::shared_ptr<DESFireKey> logicalaccess::DESFireAccessInfo::masterApplicationKey |
The master application key.
std::shared_ptr<DESFireKey> logicalaccess::DESFireAccessInfo::masterCardKey |
The master card key.
std::shared_ptr<DESFireKey> logicalaccess::DESFireAccessInfo::readKey |
The read key.
unsigned char logicalaccess::DESFireAccessInfo::readKeyno |
The read key number.
std::shared_ptr<DESFireKey> logicalaccess::DESFireAccessInfo::writeKey |
The write key.
unsigned char logicalaccess::DESFireAccessInfo::writeKeyno |
The write key number.