LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
logicalaccess::MifarePlusSL1AccessInfo Class Reference

#include <mifareplussl1accessinfo.hpp>

Inheritance diagram for logicalaccess::MifarePlusSL1AccessInfo:
logicalaccess::MifareAccessInfo logicalaccess::AccessInfo logicalaccess::XmlSerializable

Public Member Functions

 MifarePlusSL1AccessInfo ()
 
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.
 
std::string getCardType () const override
 Get the card type for this access infos.
 
- Public Member Functions inherited from logicalaccess::MifareAccessInfo
 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.
 
- Public Member Functions inherited from logicalaccess::AccessInfo
 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.
 
- Public Member Functions inherited from logicalaccess::XmlSerializable
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< AES128KeyaesAuthKey
 
- Public Attributes inherited from logicalaccess::MifareAccessInfo
std::shared_ptr< MifareKeykeyA
 The key A.
 
std::shared_ptr< MifareKeykeyB
 The key B.
 
bool useMAD
 MAD is used ?
 
std::shared_ptr< MifareKeymadKeyA
 The MAD A Key.
 
std::shared_ptr< MifareKeymadKeyB
 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 Public Member Functions inherited from logicalaccess::AccessInfo
static std::string generateSimpleKey (size_t keySize)
 Generate a key data.
 
static std::string generateSimpleDESKey (size_t keySize)
 Generate a DES key data.
 
- Static Public Member Functions inherited from logicalaccess::XmlSerializable
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 Protected Member Functions inherited from logicalaccess::XmlSerializable
static unsigned long long atoull (const std::string &str)
 

Constructor & Destructor Documentation

◆ MifarePlusSL1AccessInfo()

MifarePlusSL1AccessInfo::MifarePlusSL1AccessInfo ( )

Member Function Documentation

◆ getCardType()

std::string MifarePlusSL1AccessInfo::getCardType ( ) const
overridevirtual

Get the card type for this access infos.

Returns
The card type.

Reimplemented from logicalaccess::MifareAccessInfo.

◆ getDefaultXmlNodeName()

std::string MifarePlusSL1AccessInfo::getDefaultXmlNodeName ( ) const
overridevirtual

Get the default Xml Node name for this object.

Returns
The Xml node name.

Reimplemented from logicalaccess::MifareAccessInfo.

◆ serialize()

void MifarePlusSL1AccessInfo::serialize ( boost::property_tree::ptree &  parentNode)
overridevirtual

Serialize the current object to XML.

Parameters
parentNodeThe parent node.

Reimplemented from logicalaccess::MifareAccessInfo.

◆ unSerialize()

void MifarePlusSL1AccessInfo::unSerialize ( boost::property_tree::ptree &  parentNode)
overridevirtual

UnSerialize a XML node to the current object.

Parameters
nodeThe XML node.

Reimplemented from logicalaccess::MifareAccessInfo.

Member Data Documentation

◆ aesAuthKey

std::shared_ptr<AES128Key> logicalaccess::MifarePlusSL1AccessInfo::aesAuthKey

Key for card authentication in SL1.


The documentation for this class was generated from the following files: