LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
logicalaccess::SAMKeyEntry< T, S > Class Template Reference

A SAMKeyEntry class. More...

#include <samkeyentry.hpp>

Inheritance diagram for logicalaccess::SAMKeyEntry< T, S >:
logicalaccess::SAMBasicKeyEntry

Public Member Functions

 SAMKeyEntry ()
 
 SAMKeyEntry (const std::string &str, const std::string &str1="", const std::string &str2="")
 
 SAMKeyEntry (const void **buf, size_t buflen, char numberkey)
 
 ~SAMKeyEntry ()
 Destructor.
 
bool operator!= (const SAMKeyEntry &key) const
 Inequality operator.
 
void setSET (unsigned char *t)
 
getSETStruct ()
 
void setSET (const S &t)
 
T & getKeyEntryInformation ()
 
void setKeyEntryInformation (const T &t)
 
void setKeyTypeFromSET ()
 
void setSETKeyTypeFromKeyType ()
 
void setKeysData (std::vector< ByteVector > keys, SAMKeyType type) override
 Set the keys data.
 
- Public Member Functions inherited from logicalaccess::SAMBasicKeyEntry
virtual ~SAMBasicKeyEntry ()
 Destructor.
 
size_t getLength () const
 Get the key length.
 
std::vector< ByteVectorgetKeysData () const
 Get the keys data.
 
virtual void setKeysData (std::vector< ByteVector > keys, SAMKeyType type)
 Set the keys data.
 
unsigned char * getData () const
 Get the key data.
 
void setDiversify (bool diversify)
 Set if the key is diversified on the card.
 
bool getDiversify () const
 Get if the key is diversified on the card.
 
void setKeyType (SAMKeyType keyType)
 Set the key type.
 
SAMKeyType getKeyType () const
 Get the key type.
 
virtual void serialize (boost::property_tree::ptree &parentNode)
 Serialize the current object to XML.
 
virtual void unSerialize (boost::property_tree::ptree &node)
 UnSerialize a XML node to the current object.
 
virtual std::string getDefaultXmlNodeName () const
 Get the default Xml Node name for this object.
 
virtual bool operator== (const SAMBasicKeyEntry &key) const
 Equality operator.
 
bool operator!= (const SAMBasicKeyEntry &key) const
 Inequality operator.
 
size_t getSingleLength () const
 
unsigned char getUpdateMask () const
 
void setUpdateMask (unsigned char c)
 
KeyEntryUpdateSettings getUpdateSettings ()
 
void setUpdateSettings (const KeyEntryUpdateSettings &t)
 

Private Attributes

d_keyentryinformation
 

Additional Inherited Members

- Static Public Member Functions inherited from logicalaccess::SAMBasicKeyEntry
static std::string SAMKeyEntryTypeStr (SAMKeyType t)
 Get the SAM Key Type in string format.
 
- Protected Member Functions inherited from logicalaccess::SAMBasicKeyEntry
 SAMBasicKeyEntry ()
 
 SAMBasicKeyEntry (const SAMBasicKeyEntry &copy)
 
 SAMBasicKeyEntry (const std::string &str, const std::string &str1, const std::string &str2)
 
 SAMBasicKeyEntry (const void **buf, size_t buflen, char numberkey)
 
- Protected Attributes inherited from logicalaccess::SAMBasicKeyEntry
unsigned char * d_key
 The key bytes;.
 
bool d_diversify
 Diversify the key on the card.
 
SAMKeyType d_keyType
 The SAM key type.
 
unsigned char d_updatemask
 

Detailed Description

template<typename T, typename S>
class logicalaccess::SAMKeyEntry< T, S >

A SAMKeyEntry class.

Constructor & Destructor Documentation

◆ SAMKeyEntry() [1/3]

template<typename T , typename S >
logicalaccess::SAMKeyEntry< T, S >::SAMKeyEntry ( )
inline

◆ SAMKeyEntry() [2/3]

template<typename T , typename S >
logicalaccess::SAMKeyEntry< T, S >::SAMKeyEntry ( const std::string &  str,
const std::string &  str1 = "",
const std::string &  str2 = "" 
)
inlineexplicit

◆ SAMKeyEntry() [3/3]

template<typename T , typename S >
logicalaccess::SAMKeyEntry< T, S >::SAMKeyEntry ( const void **  buf,
size_t  buflen,
char  numberkey 
)
inline

◆ ~SAMKeyEntry()

template<typename T , typename S >
logicalaccess::SAMKeyEntry< T, S >::~SAMKeyEntry ( )
inline

Destructor.

Member Function Documentation

◆ getKeyEntryInformation()

template<typename T , typename S >
T & logicalaccess::SAMKeyEntry< T, S >::getKeyEntryInformation ( )
inline

◆ getSETStruct()

template<typename T , typename S >
S logicalaccess::SAMKeyEntry< T, S >::getSETStruct ( )
inline

◆ operator!=()

template<typename T , typename S >
bool logicalaccess::SAMKeyEntry< T, S >::operator!= ( const SAMKeyEntry< T, S > &  key) const
inline

Inequality operator.

Parameters
aiSAMKeyEntry key to compare.
Returns
True if inequals, false otherwise.

◆ setKeyEntryInformation()

template<typename T , typename S >
void logicalaccess::SAMKeyEntry< T, S >::setKeyEntryInformation ( const T &  t)
inline

◆ setKeysData()

template<typename T , typename S >
void logicalaccess::SAMKeyEntry< T, S >::setKeysData ( std::vector< ByteVector keys,
SAMKeyType  type 
)
inlineoverridevirtual

Set the keys data.

Reimplemented from logicalaccess::SAMBasicKeyEntry.

◆ setKeyTypeFromSET()

template<typename T , typename S >
void logicalaccess::SAMKeyEntry< T, S >::setKeyTypeFromSET ( )
inline

◆ setSET() [1/2]

template<typename T , typename S >
void logicalaccess::SAMKeyEntry< T, S >::setSET ( const S &  t)
inline

◆ setSET() [2/2]

template<typename T , typename S >
void logicalaccess::SAMKeyEntry< T, S >::setSET ( unsigned char *  t)
inline

◆ setSETKeyTypeFromKeyType()

template<typename T , typename S >
void logicalaccess::SAMKeyEntry< T, S >::setSETKeyTypeFromKeyType ( )
inline

Member Data Documentation

◆ d_keyentryinformation

template<typename T , typename S >
T logicalaccess::SAMKeyEntry< T, S >::d_keyentryinformation
private

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