7#ifndef LOGICALACCESS_STIDSTRREADERUNIT_HPP
8#define LOGICALACCESS_STIDSTRREADERUNIT_HPP
57 std::string getName()
const override;
63 std::string getConnectedName()
override;
69 void setCardType(std::string cardType)
override;
80 bool waitInsertion(
unsigned int maxwait)
override;
90 bool waitRemoval(
unsigned int maxwait)
override;
97 std::shared_ptr<Chip> createChip(std::string type)
override;
103 std::shared_ptr<Chip> getSingleChip()
override;
109 std::vector<std::shared_ptr<Chip>> getChipList()
override;
115 virtual std::shared_ptr<STidSTRReaderCardAdapter>
116 getDefaultSTidSTRReaderCardAdapter();
125 bool connect()
override;
133 void disconnect()
override;
139 bool isConnected()
override;
145 bool connectToReader()
override;
150 void disconnectFromReader()
override;
162 std::string getReaderSerialNumber()
override;
168 void serialize(boost::property_tree::ptree &parentNode)
override;
174 void unSerialize(boost::property_tree::ptree &node)
override;
176 std::shared_ptr<STidSTRReaderUnitConfiguration> getSTidSTRConfiguration();
182 std::shared_ptr<STidSTRReaderProvider> getSTidSTRReaderProvider()
const;
188 std::shared_ptr<Chip> scan14443A();
194 std::shared_ptr<Chip> scanARaw();
200 std::shared_ptr<Chip> scan14443B();
223 void ResetAuthenticate();
242 void set485Address(
unsigned char address);
285 void setAllowedCommModes(
bool plainComm,
bool signedComm,
bool cipheredComm);
314 return d_sessionKey_hmac;
323 return d_sessionKey_aes;
330 void authenticateHMAC();
335 void authenticateAES();
The ISO7816 reader unit class.
Definition: iso7816readerunit.hpp:25
The STidSTR reader unit class.
Definition: stidstrreaderunit.hpp:41
ByteVector d_sessionKey_aes
The AES session key.
Definition: stidstrreaderunit.hpp:345
ByteVector d_sessionKey_hmac
The HMAC session key.
Definition: stidstrreaderunit.hpp:340
ByteVector getSessionKeyAES() const
The the AES session key.
Definition: stidstrreaderunit.hpp:321
ByteVector getSessionKeyHMAC() const
The the HMAC session key.
Definition: stidstrreaderunit.hpp:312
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
STidTamperSwitchBehavior
The STid tamper switch behavior.
Definition: stidstrreaderunit.hpp:29
@ STID_TS_RESET_ALL
Definition: stidstrreaderunit.hpp:34
@ STID_TS_NOTHING
Definition: stidstrreaderunit.hpp:30
@ STID_TS_RESET_CONFIG
Definition: stidstrreaderunit.hpp:31
@ STID_TS_RESET_KEYS
Definition: stidstrreaderunit.hpp:33
STidBaudrate
The STid baudrates.
Definition: stidstrreaderunit.hpp:18
@ STID_BR_57600
Definition: stidstrreaderunit.hpp:22
@ STID_BR_115200
Definition: stidstrreaderunit.hpp:23
@ STID_BR_9600
Definition: stidstrreaderunit.hpp:19
@ STID_BR_38400
Definition: stidstrreaderunit.hpp:21
@ STID_BR_19200
Definition: stidstrreaderunit.hpp:20