|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
The DESFire base chip class. More...
#include <desfirechip.hpp>
Public Member Functions | |
| DESFireChip () | |
| Constructor. | |
| DESFireChip (std::string ct) | |
| Constructor. | |
| virtual | ~DESFireChip () |
| Destructor. | |
| std::string | getGenericCardType () const override |
| Get the generic card type. | |
| std::shared_ptr< LocationNode > | getRootLocationNode () override |
| Get the root location node. | |
| virtual std::shared_ptr< DESFireLocation > | getApplicationLocation () |
| Get the application location information. | |
| std::shared_ptr< CardService > | getService (CardServiceType serviceType) override |
| Get a card service for this card provider. | |
| std::shared_ptr< AccessInfo > | createAccessInfo () const override |
| Create default DESFire access informations. | |
| std::shared_ptr< Location > | createLocation () const override |
| Create default DESFire location. | |
| std::shared_ptr< DESFireCommands > | getDESFireCommands () const |
| Get the DESFire commands. | |
| void | setHasRealUID (bool enabled) |
| bool | hasRealUID () const |
| std::shared_ptr< DESFireCrypto > | getCrypto () const |
| Get the internal DESFire crypto. | |
| void | setCrypto (std::shared_ptr< DESFireCrypto > crypto) |
| Set the internal DESFire crypto. | |
Public Member Functions inherited from logicalaccess::Chip | |
| Chip () | |
| Constructor. | |
| Chip (std::string cardtype) | |
| Constructor. | |
| virtual | ~Chip () |
| Destructor. | |
| const std::string & | getCardType () const override |
| Get the card type of the chip. | |
| std::string | getGenericCardType () const override |
| Get the generic card type. | |
| virtual std::shared_ptr< LocationNode > | getRootLocationNode () |
| Get the root location node. | |
| std::shared_ptr< Commands > | getCommands () const override |
| Get the commands. | |
| void | setCommands (std::shared_ptr< Commands > commands) |
| Set commands. | |
| ByteVector | getChipIdentifier () const override |
| Get the chip identifier. | |
| virtual void | setChipIdentifier (ByteVector identifier) |
| Set the chip identifier. | |
| ChipPowerStatus | getPowerStatus () const |
| Get the chip power status. | |
| void | setPowerStatus (ChipPowerStatus powerStatus) |
| Set the chip power status. | |
| unsigned char | getReceptionLevel () const |
| Get the chip reception level. | |
| void | setReceptionLevel (unsigned char receptionLevel) |
| Set the chip reception level. | |
| virtual std::shared_ptr< AccessInfo > | createAccessInfo () const |
| Create default access informations. | |
| virtual std::shared_ptr< Location > | createLocation () const |
| Create default location. | |
| std::shared_ptr< CardService > | getService (CardServiceType serviceType) override |
| Get a card service for this chip. | |
| template<typename T > | |
| std::shared_ptr< T > | getService () |
| bool | operator< (const Chip &chip) const |
Public Member Functions inherited from logicalaccess::IChip | |
| virtual | ~IChip ()=default |
| virtual const std::string & | getCardType () const =0 |
| Get the card type of the chip. | |
| virtual std::string | getGenericCardType () const =0 |
| Get the generic card type. | |
| virtual std::shared_ptr< Commands > | getCommands () const =0 |
| Get the commands. | |
| virtual ByteVector | getChipIdentifier () const =0 |
| Get the chip identifier. | |
| virtual std::shared_ptr< CardService > | getService (CardServiceType serviceType)=0 |
| Get a card service for this chip. | |
Protected Attributes | |
| std::shared_ptr< DESFireCrypto > | d_crypto |
| Crypto instance for security manipulation. | |
| bool | has_real_uid_ |
Protected Attributes inherited from logicalaccess::Chip | |
| std::string | d_cardtype |
| The card type of the profile. | |
| ByteVector | d_chipIdentifier |
| The chip identifier. | |
| ChipPowerStatus | d_powerStatus |
| The chip power status. Most chip doesn't have his own power supply. | |
| std::shared_ptr< Commands > | d_commands |
| Commands object. | |
| unsigned char | d_receptionLevel |
| The chip reception level. | |
The DESFire base chip class.
| logicalaccess::DESFireChip::DESFireChip | ( | ) |
Constructor.
|
explicit |
Constructor.
| ct | The card type. |
|
virtual |
Destructor.
|
overridevirtual |
Create default DESFire access informations.
Reimplemented from logicalaccess::Chip.
|
overridevirtual |
Create default DESFire location.
Reimplemented from logicalaccess::Chip.
Reimplemented in logicalaccess::DESFireEV1Chip.
|
virtual |
Get the application location information.
Reimplemented in logicalaccess::DESFireEV1Chip.
|
inline |
Get the internal DESFire crypto.
|
inline |
Get the DESFire commands.
|
inlineoverridevirtual |
|
overridevirtual |
Get the root location node.
Reimplemented from logicalaccess::Chip.
Reimplemented in logicalaccess::DESFireEV1Chip.
|
overridevirtual |
Get a card service for this card provider.
| serviceType | The card service type. |
Reimplemented from logicalaccess::Chip.
Reimplemented in logicalaccess::DESFireEV1Chip.
|
inline |
Does the current chip identifier represents the "real uid" or is it a "random UID" ?
This flag is updated when we fetch the real UID for the first time.
|
inline |
Set the internal DESFire crypto.
| crypto | The internal DESFire crypto. |
|
inline |
Set the flag that tells us wether or now the current chip identifier is real and not random.
|
protected |
Crypto instance for security manipulation.
|
protected |
Is random UUID enabled or not ? This is detected when creating the chip object in PCSC Reader.
1.9.6