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

The STidSTR reader unit class. More...

#include <stidstrreaderunit.hpp>

Inheritance diagram for logicalaccess::STidSTRReaderUnit:
logicalaccess::ISO7816ReaderUnit logicalaccess::ReaderUnit logicalaccess::XmlSerializable

Classes

struct  STidSTRInformation
 STidSTR reader information. More...
 

Public Member Functions

 STidSTRReaderUnit ()
 Constructor.
 
virtual ~STidSTRReaderUnit ()
 Destructor.
 
std::string getName () const override
 Get the reader unit name.
 
std::string getConnectedName () override
 Get the connected reader unit name.
 
void setCardType (std::string cardType) override
 Set the card type.
 
bool waitInsertion (unsigned int maxwait) override
 Wait for a card insertion.
 
bool waitRemoval (unsigned int maxwait) override
 Wait for a card removal.
 
std::shared_ptr< ChipcreateChip (std::string type) override
 Create the chip object from card type.
 
std::shared_ptr< ChipgetSingleChip () override
 Get the first and/or most accurate chip found.
 
std::vector< std::shared_ptr< Chip > > getChipList () override
 Get chip available in the RFID rang.
 
virtual std::shared_ptr< STidSTRReaderCardAdaptergetDefaultSTidSTRReaderCardAdapter ()
 Get the default STidSTR reader/card adapter.
 
bool connect () override
 Connect to the card.
 
void disconnect () override
 Disconnect from the Deister.
 
bool isConnected () override
 Check if the card is connected.
 
bool connectToReader () override
 Connect to the reader. Implicit connection on first command sent.
 
void disconnectFromReader () override
 Disconnect from reader.
 
ByteVector getPingCommand () const override
 Get the reader ping command.
 
std::string getReaderSerialNumber () override
 Get a string hexadecimal representation of the reader serial number.
 
void serialize (boost::property_tree::ptree &parentNode) override
 Serialize the current object to XML.
 
void unSerialize (boost::property_tree::ptree &node) override
 UnSerialize a XML node to the current object.
 
std::shared_ptr< STidSTRReaderUnitConfigurationgetSTidSTRConfiguration ()
 
std::shared_ptr< STidSTRReaderProvidergetSTidSTRReaderProvider () const
 Get the STidSTR reader provider.
 
std::shared_ptr< Chipscan14443A ()
 Scan the RFID field for ISO 14443-A tag detection.
 
std::shared_ptr< ChipscanARaw ()
 Scan the RFID field for ISO 14443-A tag detection.
 
std::shared_ptr< Chipscan14443B ()
 Scan the RFID field for ISO 14443-B tag detection.
 
ByteVector authenticateReader1 (bool isHMAC)
 Authenticate the host with the reader and genereate session keys for HMAC and enciphering, 1/2.
 
ByteVector authenticateReader2 (const ByteVector &data)
 Authenticate the host with the reader and genereate session keys for HMAC and enciphering, 2/2.
 
void ResetAuthenticate ()
 Reset the reader authentication and session keys. Next frames will be transmitted plain.
 
void ChangeReaderKeys (const ByteVector &key_hmac, const ByteVector &key_aes)
 Change keys on the reader memory.
 
void setBaudRate (STidBaudrate baudrate)
 Set the reader baudrate for serial communication.
 
void set485Address (unsigned char address)
 Set the RS485 reader address.
 
STidSTRInformation getReaderInformaton ()
 Get the reader information.
 
void setAllowedCommModes (bool plainComm, bool signedComm, bool cipheredComm)
 Set the allowed communication modes with the reader.
 
void setTamperSwitchSettings (bool useTamperSwitch, STidTamperSwitchBehavior behavior)
 Set the tamper switch settings.
 
void getTamperSwitchInfos (bool &useTamperSwitch, STidTamperSwitchBehavior &behavior, bool &swChanged)
 Get the tamper switch settings.
 
void loadSKB ()
 Save in EEPROM INDEX table memory the keys from a SKB card.
 
ByteVector getSessionKeyHMAC () const
 The the HMAC session key.
 
ByteVector getSessionKeyAES () const
 The the AES session key.
 
- Public Member Functions inherited from logicalaccess::ISO7816ReaderUnit
 ISO7816ReaderUnit (std::string rpt)
 
virtual ~ISO7816ReaderUnit ()
 
bool waitInsertion (unsigned int) override
 Wait for a card insertion.
 
bool waitRemoval (unsigned int) override
 Wait for a card removal.
 
bool isConnected () override
 Check if the card is connected.
 
void setCardType (std::string) override
 Set the forced card type.
 
std::shared_ptr< ChipgetSingleChip () override
 Get the first and/or most accurate chip found.
 
std::vector< std::shared_ptr< Chip > > getChipList () override
 Get chip available in the RFID rang.
 
bool connect () override
 Connect to the card.
 
void disconnect () override
 Disconnect from the card.
 
virtual void connectToSAM ()
 
bool connectToReader () override
 Connect to the reader. Implicit connection on first command sent.
 
virtual void disconnectFromSAM ()
 
void disconnectFromReader () override
 Disconnect from reader.
 
virtual void reloadReaderConfiguration ()
 
virtual void setContext (const std::string &context)
 Set the client context.
 
virtual std::string getContext ()
 Get the client context.
 
std::string getName () const override
 Get the reader unit name.
 
std::string getReaderSerialNumber () override
 Get a string hexadecimal representation of the reader serial number.
 
std::shared_ptr< CardProbecreateCardProbe () override
 
virtual std::shared_ptr< SAMChipgetSAMChip ()
 Get The SAM Chip.
 
virtual void setSAMChip (std::shared_ptr< SAMChip > t)
 Set the SAM Chip.
 
virtual std::shared_ptr< ISO7816ReaderUnitgetSAMReaderUnit ()
 Get The SAM ReaderUnit.
 
virtual void setSAMReaderUnit (std::shared_ptr< ISO7816ReaderUnit > t)
 Set the SAM ReaderUnit.
 
- Public Member Functions inherited from logicalaccess::ReaderUnit
 ReaderUnit (std::string rpt)
 Constructor.
 
virtual ~ReaderUnit ()
 Destructor.
 
std::string getRPType () const
 Get the reader provider type.
 
virtual ByteVector getPingCommand () const
 Get the reader ping command.
 
virtual bool waitInsertion (unsigned int maxwait)=0
 Wait for a card insertion.
 
virtual bool waitInsertion (const ByteVector &identifier, unsigned int maxwait)
 Wait for a specific card insertion.
 
virtual bool waitRemoval (unsigned int maxwait)=0
 Wait for a card removal.
 
virtual bool isConnected ()=0
 Check if the card is connected.
 
std::string getCardType () const
 Get the forced card type.
 
virtual void setCardType (std::string cardType)=0
 Set the forced card type.
 
virtual std::shared_ptr< ChipcreateChip (std::string type)
 Create the chip object from card type.
 
virtual std::shared_ptr< ChipcreateChip (std::string type, const ByteVector &identifier)
 Create the chip object from card type with identifier.
 
virtual ByteVector getNumber (std::shared_ptr< Chip > chip)
 Get the number from the embedded licensing configuration.
 
virtual std::shared_ptr< ChipgetSingleChip ()=0
 Get the first and/or most accurate chip found.
 
virtual std::vector< std::shared_ptr< Chip > > getChipList ()=0
 Get chip available in the RFID rang.
 
virtual ByteVector getNumber (std::shared_ptr< Chip > chip, std::shared_ptr< CardsFormatComposite > composite)
 Get the number from the reader format composite.
 
virtual bool connect ()=0
 Connect to the card.
 
virtual bool reconnect (int action=0)
 Reconnect to the card with the currently active share mode on the same reader.
 
virtual void disconnect ()=0
 Disconnect from the card.
 
virtual bool connectToReader ()=0
 Connect to the reader. Implicit connection on first command sent.
 
virtual void disconnectFromReader ()=0
 Disconnect from reader.
 
virtual std::string getName () const =0
 Get the reader unit name.
 
virtual std::string getConnectedName ()
 Get the connected reader unit name.
 
virtual std::shared_ptr< ReaderUnitConfigurationgetConfiguration ()
 Get the reader unit configuration.
 
virtual void setConfiguration (std::shared_ptr< ReaderUnitConfiguration > config)
 Set the reader unit configuration.
 
virtual std::shared_ptr< ReaderCardAdaptergetDefaultReaderCardAdapter ()
 Get the default reader/card adapter.
 
virtual void setDefaultReaderCardAdapter (std::shared_ptr< ReaderCardAdapter > defaultRca)
 Set the default reader/card adapter.
 
virtual std::shared_ptr< DataTransportgetDataTransport () const
 Get the data transport layer.
 
virtual void setDataTransport (std::shared_ptr< DataTransport > dataTransport)
 Set the data transport layer.
 
virtual std::string getReaderSerialNumber ()=0
 Get a string hexadecimal representation of the reader serial number.
 
std::string getDefaultXmlNodeName () const override
 Get the default Xml Node name for this object.
 
void serialize (boost::property_tree::ptree &node) override
 Serialize the current object to XML.
 
void unSerialize (boost::property_tree::ptree &node) override
 UnSerialize a XML node to the current object.
 
void unSerialize (boost::property_tree::ptree &node, const std::string &rootNode) override
 UnSerialize object from a Xml node.
 
std::shared_ptr< ReaderProvidergetReaderProvider () const
 Get the associated reader provider.
 
void setReaderProvider (std::weak_ptr< ReaderProvider > provider)
 Set the associated reader provider.
 
virtual std::shared_ptr< LCDDisplaygetLCDDisplay ()
 Get the LCD Display for this reader unit.
 
virtual void setLCDDisplay (std::shared_ptr< LCDDisplay > d)
 Get the LCD Display for this reader unit.
 
virtual std::shared_ptr< LEDBuzzerDisplaygetLEDBuzzerDisplay ()
 Get the LED/Buzzer Display for this reader unit.
 
virtual void setLEDBuzzerDisplay (std::shared_ptr< LEDBuzzerDisplay > lbd)
 Get the LCD Display for this reader unit.
 
virtual void setCardTechnologies (const TechnoBitset &bitset)
 
virtual TechnoBitset getCardTechnologies ()
 
virtual TechnoBitset getPossibleCardTechnologies ()
 
virtual ReaderServicePtr getService (const ReaderServiceType &type)
 
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::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.
 

Protected Member Functions

void authenticateHMAC ()
 Authenticate the host and the reader to obtain the HMAC session key.
 
void authenticateAES ()
 Authenticate the host and the reader to obtain the AES session key.
 
- Protected Member Functions inherited from logicalaccess::ISO7816ReaderUnit
std::shared_ptr< ResultCheckercreateDefaultResultChecker () const override
 
std::shared_ptr< ISO7816ReaderProvidergetISO7816ReaderProvider () const
 Get the ISO7816 reader provider.
 
std::shared_ptr< ISO7816ReaderUnitConfigurationgetISO7816Configuration ()
 Get the ISO7816 reader unit configuration.
 
bool reconnect (int action) override
 Reconnect to the card with the currently active share mode on the same reader.
 
virtual std::shared_ptr< ResultCheckercreateDefaultResultChecker () const
 
virtual std::shared_ptr< CardProbecreateCardProbe ()
 

Protected Attributes

ByteVector d_sessionKey_hmac
 The HMAC session key.
 
ByteVector d_sessionKey_aes
 The AES session key.
 
- Protected Attributes inherited from logicalaccess::ISO7816ReaderUnit
std::shared_ptr< SAMChipd_sam_chip
 The SAM chip.
 
std::shared_ptr< ISO7816ReaderUnitd_sam_readerunit
 The SAM ReaderUnit used SAM Authentication.
 
std::string d_client_context
 The client context.
 
std::string d_sam_client_context
 The sam client context.
 
- Protected Attributes inherited from logicalaccess::ReaderUnit
std::string d_readerProviderType
 The associated reader provider type for the reader unit configuration.
 
std::string d_card_type
 The forced card type.
 
std::weak_ptr< ReaderProviderd_readerProvider
 The associated reader provider for the reader unit.
 
std::shared_ptr< ReaderUnitConfigurationd_readerUnitConfig
 The reader unit configuration.
 
std::shared_ptr< Chipd_insertedChip
 The inserted chip.
 
std::shared_ptr< LCDDisplayd_lcdDisplay
 The inserted chip.
 
std::shared_ptr< LEDBuzzerDisplayd_ledBuzzerDisplay
 The inserted chip.
 

Additional Inherited Members

- Static Public Member Functions inherited from logicalaccess::ReaderUnit
static uint64_t getFormatedNumber (const ByteVector &number, int padding)
 Get the number as decimal a number.
 
static std::string getFormatedNumber (const ByteVector &number)
 Get a string hexadecimal representation of the number.
 
- 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)
 

Detailed Description

The STidSTR reader unit class.

Constructor & Destructor Documentation

◆ STidSTRReaderUnit()

logicalaccess::STidSTRReaderUnit::STidSTRReaderUnit ( )

Constructor.

◆ ~STidSTRReaderUnit()

logicalaccess::STidSTRReaderUnit::~STidSTRReaderUnit ( )
virtual

Destructor.

Member Function Documentation

◆ authenticateAES()

void logicalaccess::STidSTRReaderUnit::authenticateAES ( )
protected

Authenticate the host and the reader to obtain the AES session key.

◆ authenticateHMAC()

void logicalaccess::STidSTRReaderUnit::authenticateHMAC ( )
protected

Authenticate the host and the reader to obtain the HMAC session key.

◆ authenticateReader1()

ByteVector logicalaccess::STidSTRReaderUnit::authenticateReader1 ( bool  isHMAC)

Authenticate the host with the reader and genereate session keys for HMAC and enciphering, 1/2.

Parameters
isHMACTrue if the authentication process is for HMAC session key, false for AES session key.
Returns
The reader response.

◆ authenticateReader2()

ByteVector logicalaccess::STidSTRReaderUnit::authenticateReader2 ( const ByteVector data)

Authenticate the host with the reader and genereate session keys for HMAC and enciphering, 2/2.

Parameters
dataThe authentication command data.
Returns
The reader response.

◆ ChangeReaderKeys()

void logicalaccess::STidSTRReaderUnit::ChangeReaderKeys ( const ByteVector key_hmac,
const ByteVector key_aes 
)

Change keys on the reader memory.

Parameters
key_hmacThe new HMAC user key. Empty to keep the current one.
key_hmacThe new AES user key. Empty to keep the current one.

◆ connect()

bool logicalaccess::STidSTRReaderUnit::connect ( )
overridevirtual

Connect to the card.

Returns
True if the card was connected without error, false otherwise.

If the card handle was already connected, connect() first call disconnect(). If you intend to do a reconnection, call reconnect() instead.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ connectToReader()

bool logicalaccess::STidSTRReaderUnit::connectToReader ( )
overridevirtual

Connect to the reader. Implicit connection on first command sent.

Returns
True if the connection successed.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ createChip()

std::shared_ptr< Chip > logicalaccess::STidSTRReaderUnit::createChip ( std::string  type)
overridevirtual

Create the chip object from card type.

Parameters
typeThe card type.
Returns
The chip.

Reimplemented from logicalaccess::ReaderUnit.

◆ disconnect()

void logicalaccess::STidSTRReaderUnit::disconnect ( )
overridevirtual

Disconnect from the Deister.

See also
connect

Calling this method on a disconnected Deister has no effect.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ disconnectFromReader()

void logicalaccess::STidSTRReaderUnit::disconnectFromReader ( )
overridevirtual

Disconnect from reader.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ getChipList()

std::vector< std::shared_ptr< Chip > > logicalaccess::STidSTRReaderUnit::getChipList ( )
overridevirtual

Get chip available in the RFID rang.

Returns
The chip list.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ getConnectedName()

std::string logicalaccess::STidSTRReaderUnit::getConnectedName ( )
overridevirtual

Get the connected reader unit name.

Returns
The connected reader unit name.

Reimplemented from logicalaccess::ReaderUnit.

◆ getDefaultSTidSTRReaderCardAdapter()

std::shared_ptr< STidSTRReaderCardAdapter > logicalaccess::STidSTRReaderUnit::getDefaultSTidSTRReaderCardAdapter ( )
virtual

Get the default STidSTR reader/card adapter.

Returns
The default STidSTR reader/card adapter.

◆ getName()

std::string logicalaccess::STidSTRReaderUnit::getName ( ) const
overridevirtual

Get the reader unit name.

Returns
The reader unit name.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ getPingCommand()

ByteVector logicalaccess::STidSTRReaderUnit::getPingCommand ( ) const
overridevirtual

Get the reader ping command.

Returns
The ping command.

Reimplemented from logicalaccess::ReaderUnit.

◆ getReaderInformaton()

STidSTRReaderUnit::STidSTRInformation logicalaccess::STidSTRReaderUnit::getReaderInformaton ( )

Get the reader information.

Returns
The reader information.

◆ getReaderSerialNumber()

std::string logicalaccess::STidSTRReaderUnit::getReaderSerialNumber ( )
overridevirtual

Get a string hexadecimal representation of the reader serial number.

Returns
The reader serial number or an empty string on error.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ getSessionKeyAES()

ByteVector logicalaccess::STidSTRReaderUnit::getSessionKeyAES ( ) const
inline

The the AES session key.

Returns
The session key.

◆ getSessionKeyHMAC()

ByteVector logicalaccess::STidSTRReaderUnit::getSessionKeyHMAC ( ) const
inline

The the HMAC session key.

Returns
The session key.

◆ getSingleChip()

std::shared_ptr< Chip > logicalaccess::STidSTRReaderUnit::getSingleChip ( )
overridevirtual

Get the first and/or most accurate chip found.

Returns
The single chip.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ getSTidSTRConfiguration()

std::shared_ptr< STidSTRReaderUnitConfiguration > logicalaccess::STidSTRReaderUnit::getSTidSTRConfiguration ( )

◆ getSTidSTRReaderProvider()

std::shared_ptr< STidSTRReaderProvider > logicalaccess::STidSTRReaderUnit::getSTidSTRReaderProvider ( ) const

Get the STidSTR reader provider.

Returns
The STidSTR reader provider.

◆ getTamperSwitchInfos()

void logicalaccess::STidSTRReaderUnit::getTamperSwitchInfos ( bool &  useTamperSwitch,
STidTamperSwitchBehavior behavior,
bool &  swChanged 
)

Get the tamper switch settings.

Parameters
useTamperSwitchTrue to use tamper switch action, false to not.
behaviorThe behavior when tamper switch is activated.
swChangedTrue if the SW state have changed, false otherwise.

◆ isConnected()

bool logicalaccess::STidSTRReaderUnit::isConnected ( )
overridevirtual

Check if the card is connected.

Returns
True if the card is connected, false otherwise.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ loadSKB()

void logicalaccess::STidSTRReaderUnit::loadSKB ( )

Save in EEPROM INDEX table memory the keys from a SKB card.

◆ ResetAuthenticate()

void logicalaccess::STidSTRReaderUnit::ResetAuthenticate ( )

Reset the reader authentication and session keys. Next frames will be transmitted plain.

◆ scan14443A()

std::shared_ptr< Chip > logicalaccess::STidSTRReaderUnit::scan14443A ( )

Scan the RFID field for ISO 14443-A tag detection.

Returns
The chip object if a tag is inserted.

◆ scan14443B()

std::shared_ptr< Chip > logicalaccess::STidSTRReaderUnit::scan14443B ( )

Scan the RFID field for ISO 14443-B tag detection.

Returns
The chip object if a tag is inserted.

◆ scanARaw()

std::shared_ptr< Chip > logicalaccess::STidSTRReaderUnit::scanARaw ( )

Scan the RFID field for ISO 14443-A tag detection.

Returns
The chip object if a tag is inserted.

◆ serialize()

void logicalaccess::STidSTRReaderUnit::serialize ( boost::property_tree::ptree &  parentNode)
overridevirtual

Serialize the current object to XML.

Parameters
parentNodeThe parent node.

Reimplemented from logicalaccess::ReaderUnit.

◆ set485Address()

void logicalaccess::STidSTRReaderUnit::set485Address ( unsigned char  address)

Set the RS485 reader address.

Parameters
addressThe new reader address.

◆ setAllowedCommModes()

void logicalaccess::STidSTRReaderUnit::setAllowedCommModes ( bool  plainComm,
bool  signedComm,
bool  cipheredComm 
)

Set the allowed communication modes with the reader.

Parameters
plainCommTrue to be allowed to use plain communication mode, false otherwise.
signedCommTrue to be allowed to use signed communication mode without ciphering, false otherwise.
cipheredCommTrue to be allowed to use ciphered communication mode without signature, false otherwise.

◆ setBaudRate()

void logicalaccess::STidSTRReaderUnit::setBaudRate ( STidBaudrate  baudrate)

Set the reader baudrate for serial communication.

Parameters
baudrateThe new baudrate to apply.

◆ setCardType()

void logicalaccess::STidSTRReaderUnit::setCardType ( std::string  cardType)
overridevirtual

Set the card type.

Parameters
cardTypeThe card type.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ setTamperSwitchSettings()

void logicalaccess::STidSTRReaderUnit::setTamperSwitchSettings ( bool  useTamperSwitch,
STidTamperSwitchBehavior  behavior 
)

Set the tamper switch settings.

Parameters
useTamperSwitchTrue to use tamper switch action, false to not.
behaviorThe behavior when tamper switch is activated.

◆ unSerialize()

void logicalaccess::STidSTRReaderUnit::unSerialize ( boost::property_tree::ptree &  node)
overridevirtual

UnSerialize a XML node to the current object.

Parameters
nodeThe XML node.

Reimplemented from logicalaccess::ReaderUnit.

◆ waitInsertion()

bool logicalaccess::STidSTRReaderUnit::waitInsertion ( unsigned int  maxwait)
overridevirtual

Wait for a card insertion.

Parameters
maxwaitThe maximum time to wait for, in milliseconds. If maxwait is zero, then the call never times out.
Returns
True if a card was inserted, false otherwise. If a card was inserted, the name of the reader on which the insertion was detected is accessible with getReader().
Warning
If the card is already connected, then the method always fail.

Reimplemented from logicalaccess::ISO7816ReaderUnit.

◆ waitRemoval()

bool logicalaccess::STidSTRReaderUnit::waitRemoval ( unsigned int  maxwait)
overridevirtual

Wait for a card removal.

Parameters
maxwaitThe maximum time to wait for, in milliseconds. If maxwait is zero, then the call never times out.
Returns
True if a card was removed, false otherwise. If a card was removed, the name of the reader on which the removal was detected is accessible with getReader().

Reimplemented from logicalaccess::ISO7816ReaderUnit.

Member Data Documentation

◆ d_sessionKey_aes

ByteVector logicalaccess::STidSTRReaderUnit::d_sessionKey_aes
protected

The AES session key.

◆ d_sessionKey_hmac

ByteVector logicalaccess::STidSTRReaderUnit::d_sessionKey_hmac
protected

The HMAC session key.


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