File indexing completed on 2024-06-23 05:14:11

0001 /*  smartcard/p15card.h
0002 
0003     This file is part of Kleopatra, the KDE keymanager
0004     SPDX-FileCopyrightText: 2021 g10 Code GmbH
0005     SPDX-FileContributor: Andre Heinecke <aheinecke@g10code.com>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 #pragma once
0010 
0011 #include "card.h"
0012 
0013 namespace Kleo
0014 {
0015 namespace SmartCard
0016 {
0017 
0018 /** Class to work with PKCS#15 smartcards or compatible tokens.
0019  *
0020  * A PKCS#15 card is pretty generic and there is no real standard
0021  * for them. It all depends on the Apps running on the cards. This
0022  * mostly tries to leave it to GnuPG to determine if there are usable
0023  * things on the card. The generic info on all keys on the card is
0024  * accessible through keyInfo from the parent class.
0025  *
0026  * The specialization is required for specific app support.
0027  **/
0028 class P15Card : public Card
0029 {
0030 public:
0031     explicit P15Card(const Card &card);
0032 
0033     static const std::string AppName;
0034 };
0035 
0036 }
0037 }