LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
logicalaccess::AccessInfo Class Referenceabstract

A Access informations. Describe key used of authentication and access rights for a specific or a group of operati. More...

#include <accessinfo.hpp>

Inheritance diagram for logicalaccess::AccessInfo:
logicalaccess::XmlSerializable logicalaccess::DESFireAccessInfo logicalaccess::EPassAccessInfo logicalaccess::MifareAccessInfo logicalaccess::MifareUltralightAccessInfo logicalaccess::TopazAccessInfo logicalaccess::MifarePlusSL1AccessInfo logicalaccess::MifareUltralightCAccessInfo

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.
 
- 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.
 

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 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.
 

Additional Inherited Members

- Static Protected Member Functions inherited from logicalaccess::XmlSerializable
static unsigned long long atoull (const std::string &str)
 

Detailed Description

A Access informations. Describe key used of authentication and access rights for a specific or a group of operati.

Remarks
Linearizable is depreciated, shouldn't be used anymore in further versions.

Constructor & Destructor Documentation

◆ AccessInfo()

logicalaccess::AccessInfo::AccessInfo ( )

Constructor.

◆ ~AccessInfo()

virtual logicalaccess::AccessInfo::~AccessInfo ( )
virtualdefault

Member Function Documentation

◆ generateInfos()

virtual void logicalaccess::AccessInfo::generateInfos ( )
pure virtual

◆ generateSimpleDESKey()

std::string logicalaccess::AccessInfo::generateSimpleDESKey ( size_t  keySize)
static

Generate a DES key data.

Parameters
seedSeed used for random numbers.
keySizeThe key size.
Returns
A generated pseudo-random key.

◆ generateSimpleKey()

std::string logicalaccess::AccessInfo::generateSimpleKey ( size_t  keySize)
static

Generate a key data.

Parameters
seedSeed used for random numbers.
keySizeThe key size.
Returns
A generated pseudo-random key.

◆ getCardType()

virtual std::string logicalaccess::AccessInfo::getCardType ( ) const
pure virtual

◆ operator!=()

bool logicalaccess::AccessInfo::operator!= ( const AccessInfo ai) const
inline

Inequality operator.

Parameters
aiAccess infos to compare.
Returns
True if inequals, false otherwise.

◆ operator==()

bool logicalaccess::AccessInfo::operator== ( const AccessInfo ai) const
virtual

Equality operator.

Parameters
aiAccess infos to compare.
Returns
True if equals, false otherwise.

Reimplemented in logicalaccess::DESFireAccessInfo, logicalaccess::MifareAccessInfo, logicalaccess::MifareUltralightAccessInfo, logicalaccess::MifareUltralightCAccessInfo, and logicalaccess::TopazAccessInfo.


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