LibLogicalAccess
2.5.0
An Open Source RFID Library
|
A Mifare access informations. More...
#include <mifareaccessinfo.hpp>
Classes | |
struct | BlockAccessBits |
Block access bits structure. More... | |
struct | DataBlockAccessBits |
Data block access bits structure. More... | |
struct | SectorAccessBits |
Sector access bits structure. More... | |
struct | SectorTrailerAccessBits |
Sector trailer block access bits structure. More... | |
Public Member Functions | |
MifareAccessInfo () | |
Constructor. | |
virtual | ~MifareAccessInfo () |
Destructor. | |
void | generateInfos () override |
Generate pseudo-random Mifare 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 &parentNode) override |
UnSerialize a XML node to the current object. | |
std::string | getDefaultXmlNodeName () const override |
Get the default Xml Node name for this object. | |
bool | operator== (const AccessInfo &ai) const override |
Equality operator. | |
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< MifareKey > | keyA |
The key A. | |
std::shared_ptr< MifareKey > | keyB |
The key B. | |
bool | useMAD |
MAD is used ? | |
std::shared_ptr< MifareKey > | madKeyA |
The MAD A Key. | |
std::shared_ptr< MifareKey > | madKeyB |
The MAD B Key. | |
SectorAccessBits | sab |
The sector access bits. | |
unsigned char | gpb |
The sector GPB. | |
unsigned char | madGPB |
The MAD GPB. | |
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 Mifare access informations.
logicalaccess::MifareAccessInfo::MifareAccessInfo | ( | ) |
Constructor.
|
virtual |
Destructor.
|
overridevirtual |
Generate pseudo-random Mifare access informations.
Implements logicalaccess::AccessInfo.
|
overridevirtual |
Get the card type for this access infos.
Implements logicalaccess::AccessInfo.
Reimplemented in logicalaccess::MifarePlusSL1AccessInfo.
|
overridevirtual |
Get the default Xml Node name for this object.
Implements logicalaccess::XmlSerializable.
Reimplemented in logicalaccess::MifarePlusSL1AccessInfo.
|
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.
Reimplemented in logicalaccess::MifarePlusSL1AccessInfo.
|
virtual |
Serialize object to Xml Node.
os | The XML stream. |
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.
|
overridevirtual |
UnSerialize a XML node to the current object.
node | The XML node. |
Implements logicalaccess::XmlSerializable.
Reimplemented in logicalaccess::MifarePlusSL1AccessInfo.
|
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.
unsigned char logicalaccess::MifareAccessInfo::gpb |
The sector GPB.
std::shared_ptr<MifareKey> logicalaccess::MifareAccessInfo::keyA |
The key A.
std::shared_ptr<MifareKey> logicalaccess::MifareAccessInfo::keyB |
The key B.
unsigned char logicalaccess::MifareAccessInfo::madGPB |
The MAD GPB.
SectorAccessBits logicalaccess::MifareAccessInfo::sab |
The sector access bits.
bool logicalaccess::MifareAccessInfo::useMAD |
MAD is used ?