LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
yubikeychip.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_YUBIKEYCHIP_HPP
8#define LOGICALACCESS_YUBIKEYCHIP_HPP
9
12#include <logicalaccess/plugins/cards/yubikey/lla_cards_yubikey_api.hpp>
13
14#include <string>
15#include <vector>
16#include <iostream>
17
18namespace logicalaccess
19{
20#define CHIP_YUBIKEY "Yubikey"
21
25class LLA_CARDS_YUBIKEY_API YubikeyChip : public Chip
26{
27 public:
31 explicit YubikeyChip(std::string ct);
32
37
41 virtual ~YubikeyChip();
42
47 std::string getGenericCardType() const override
48 {
49 return CHIP_YUBIKEY;
50 }
51
57 std::shared_ptr<CardService> getService(CardServiceType serviceType) override;
58
63 std::shared_ptr<YubikeyCommands> getYubikeyCommands() const
64 {
65 return std::dynamic_pointer_cast<YubikeyCommands>(getCommands());
66 }
67};
68}
69
70#endif
Chip descriptor.
The base chip class for all chip. Each chip have is own object and providers according to himself and...
Definition: chip.hpp:37
The Yubikey base chip class.
Definition: yubikeychip.hpp:26
std::shared_ptr< YubikeyCommands > getYubikeyCommands() const
Get the Yubikey commands.
Definition: yubikeychip.hpp:63
std::string getGenericCardType() const override
Get the generic card type.
Definition: yubikeychip.hpp:47
Definition: asn1.hpp:9
CardServiceType
The card services.
Definition: cardservice.hpp:35
#define CHIP_YUBIKEY
Definition: yubikeychip.hpp:20
Yubikey commands.