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

The Mifare Ultralight C commands class. More...

#include <mifareultralightccommands.hpp>

Inheritance diagram for logicalaccess::MifareUltralightCCommands:
logicalaccess::MifareUltralightCOmnikeyXX22Commands logicalaccess::MifareUltralightCPCSCCommands logicalaccess::MifareUltralightCACSACRCommands logicalaccess::MifareUltralightCOmnikeyXX21Commands logicalaccess::MifareUltralightCSpringCardCommands

Public Member Functions

virtual ~MifareUltralightCCommands ()=default
 
void authenticate (std::shared_ptr< AccessInfo > aiToUse)
 Authenticate to the chip.
 
void changeKey (std::shared_ptr< AccessInfo > aiToWrite)
 Change the chip authentication key.
 
virtual void changeKey (std::shared_ptr< TripleDESKey > key)
 Change the chip authentication key.
 
virtual void lockPage (int page)
 Set a page as read-only.
 
virtual void authenticate (std::shared_ptr< TripleDESKey > authkey)=0
 Authenticate to the chip.
 
virtual void writePage (int page, const ByteVector &buf)=0
 

Protected Member Functions

std::shared_ptr< MifareUltralightCChipgetMifareUltralightCChip ()
 
virtual std::shared_ptr< MifareUltralightChipgetMifareUltralightChip ()=0
 

Detailed Description

The Mifare Ultralight C commands class.

Constructor & Destructor Documentation

◆ ~MifareUltralightCCommands()

virtual logicalaccess::MifareUltralightCCommands::~MifareUltralightCCommands ( )
virtualdefault

Member Function Documentation

◆ authenticate() [1/2]

void logicalaccess::MifareUltralightCCommands::authenticate ( std::shared_ptr< AccessInfo aiToUse)

Authenticate to the chip.

Parameters
aiToUseThe access information to use for authentication.

◆ authenticate() [2/2]

virtual void logicalaccess::MifareUltralightCCommands::authenticate ( std::shared_ptr< TripleDESKey authkey)
pure virtual

Authenticate to the chip.

Parameters
authkeyThe authentication key.

Implemented in logicalaccess::MifareUltralightCOmnikeyXX22Commands, and logicalaccess::MifareUltralightCPCSCCommands.

◆ changeKey() [1/2]

void logicalaccess::MifareUltralightCCommands::changeKey ( std::shared_ptr< AccessInfo aiToWrite)

Change the chip authentication key.

Parameters
aiToWriteThe access information to write.

◆ changeKey() [2/2]

void logicalaccess::MifareUltralightCCommands::changeKey ( std::shared_ptr< TripleDESKey key)
virtual

Change the chip authentication key.

Parameters
keyThe new key.

◆ getMifareUltralightCChip()

std::shared_ptr< MifareUltralightCChip > logicalaccess::MifareUltralightCCommands::getMifareUltralightCChip ( )
protected

◆ getMifareUltralightChip()

virtual std::shared_ptr< MifareUltralightChip > logicalaccess::MifareUltralightCCommands::getMifareUltralightChip ( )
protectedpure virtual

◆ lockPage()

void logicalaccess::MifareUltralightCCommands::lockPage ( int  page)
virtual

Set a page as read-only.

Parameters
pageThe page to lock.

◆ writePage()

virtual void logicalaccess::MifareUltralightCCommands::writePage ( int  page,
const ByteVector buf 
)
pure virtual

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