LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
twiciso7816commands.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_TWICISO7816COMMANDS_HPP
8#define LOGICALACCESS_TWICISO7816COMMANDS_HPP
9
10#include <logicalaccess/key.hpp>
13#include <logicalaccess/plugins/readers/iso7816/lla_readers_iso7816_api.hpp>
14#include <string>
15#include <vector>
16#include <iostream>
17
18namespace logicalaccess
19{
20#define CMD_TWICISO7816 "TwicISO7816"
21
22class TwicProfile;
23
27class LLA_READERS_ISO7816_API TwicISO7816Commands : public ISO7816ISO7816Commands
28#ifndef SWIG
29 ,
30 public TwicCommands
31#endif
32{
33 public:
38
39 explicit TwicISO7816Commands(std::string ct);
40
44 virtual ~TwicISO7816Commands();
45
49 void selectTWICApplication() override;
50
55 ByteVector getUnsignedCardholderUniqueIdentifier() override;
56
62 ByteVector getTWICPrivacyKey() override;
63
68 ByteVector getCardholderUniqueIdentifier() override;
69
74 ByteVector getCardHolderFingerprints() override;
75
80 ByteVector getSecurityObject() override;
81
82 std::shared_ptr<ISO7816Commands> getISO7816Commands() const override
83 {
84 auto command = std::make_shared<ISO7816ISO7816Commands>();
85 command->setChip(getChip());
86 command->setReaderCardAdapter(getReaderCardAdapter());
87 return command;
88 }
89};
90}
91
92#endif
The ISO7816 commands base class.
Definition: iso7816iso7816commands.hpp:46
The Twic commands class.
Definition: twiccommands.hpp:21
The Twic ISO7816 commands base class.
Definition: twiciso7816commands.hpp:32
std::shared_ptr< ISO7816Commands > getISO7816Commands() const override
Definition: twiciso7816commands.hpp:82
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
Twic commands.