LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
twiccommands.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_TWICCOMMANDS_HPP
8#define LOGICALACCESS_TWICCOMMANDS_HPP
9
13#include <logicalaccess/plugins/cards/twic/lla_cards_twic_api.hpp>
14
15namespace logicalaccess
16{
20class LLA_CARDS_TWIC_API TwicCommands
21{
22 public:
23 virtual ~TwicCommands() = default;
24
25 static size_t getMinimumBytesRepresentation(size_t value);
26
27 static size_t getMaximumDataObjectLength(int64_t dataObject);
28
29 static size_t getMaximumTagLength(int64_t dataObject, unsigned char tag);
30
31 static size_t getValueFromBytes(unsigned char *data, size_t datalength);
32
40 size_t getDataObjectLength(int64_t dataObject, bool withObjectLength = false);
41
42 static bool getTagData(std::shared_ptr<TwicLocation> location, void *data,
43 size_t datalen, void *datatag, size_t &datataglen);
44
48 virtual void selectTWICApplication() = 0;
49
57
66
74
82
90
91 virtual std::shared_ptr<ISO7816Commands> getISO7816Commands() const
92 {
93 return std::shared_ptr<ISO7816Commands>();
94 }
95};
96}
97
98#endif
AccessInfo.
The Twic commands class.
Definition: twiccommands.hpp:21
virtual ByteVector getCardHolderFingerprints()=0
Get the Cardholder Fingerprints.
virtual ByteVector getTWICPrivacyKey()=0
Get the TWIC Privacy Key.
virtual void selectTWICApplication()=0
Select the TWIC application.
virtual ByteVector getSecurityObject()=0
Get the Security Object.
virtual ByteVector getUnsignedCardholderUniqueIdentifier()=0
Get the Unsigned Cardholder Unique Identifier.
virtual ~TwicCommands()=default
virtual std::shared_ptr< ISO7816Commands > getISO7816Commands() const
Definition: twiccommands.hpp:91
virtual ByteVector getCardholderUniqueIdentifier()=0
Get the Cardholder Unique Identifier.
ISO7816 commands. See http://www.cardwerk.com/smartcards/smartcard_standard_ISO7816-4....
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
Twic location.