Keyple Plugin PC/SC C++ Library - 2.6.3
Component of the Keyple C++ middleware
PcscCardCommunicationProtocol.cpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional *
5 * information regarding copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the *
8 * terms of the Eclipse Public License 2.0 which is available at *
9 * http://www.eclipse.org/legal/epl-2.0 *
10 * *
11 * SPDX-License-Identifier: EPL-2.0 *
12 ******************************************************************************/
13
14#include "keyple/plugin/pcsc/PcscCardCommunicationProtocol.hpp"
15
16namespace keyple {
17namespace plugin {
18namespace pcsc {
19
20const PcscCardCommunicationProtocol
21 PcscCardCommunicationProtocol::ISO_14443_4(
22 "ISO_14443_4", "3B8[0-9A-F]8001(?!.*5A0A)(?!804F0CA000000306).*");
23
24const PcscCardCommunicationProtocol
25 PcscCardCommunicationProtocol::INNOVATRON_B_PRIME(
26 "INNOVATRON_B_PRIME", "3B8.8001(80)?5A0A.*");
27
28const PcscCardCommunicationProtocol
29 PcscCardCommunicationProtocol::MIFARE_CLASSIC_1K(
30 "MIFARE_CLASSIC_1K", "3B8F8001804F0CA000000306030001.*");
31
32const PcscCardCommunicationProtocol
33 PcscCardCommunicationProtocol::MIFARE_CLASSIC_4K(
34 "MIFARE_CLASSIC_4K", "3B8F8001804F0CA000000306030002.*");
35
36const PcscCardCommunicationProtocol
37 PcscCardCommunicationProtocol::MIFARE_ULTRALIGHT(
38 "MIFARE_ULTRALIGHT", "3B8F8001804F0CA000000306030003.*");
39
40const PcscCardCommunicationProtocol
41 PcscCardCommunicationProtocol::ST25_SRT512(
42 "ST25_SRT512", "3B8F8001804F0CA0000003060(5|6|7)0007.*");
43
44const PcscCardCommunicationProtocol
45 PcscCardCommunicationProtocol::ISO_7816_3("ISO_7816_3", "3.*");
46
47PcscCardCommunicationProtocol::PcscCardCommunicationProtocol(
48 const std::string& name, const std::string& defaultRule)
49: mName(name)
50, mDefaultRule(defaultRule)
51{
52}
53
54const std::string&
55PcscCardCommunicationProtocol::getDefaultRule() const
56{
57 return mDefaultRule;
58}
59
60const std::string&
61PcscCardCommunicationProtocol::getName() const
62{
63 return mName;
64}
65
66} /* namespace pcsc */
67} /* namespace plugin */
68} /* namespace keyple */
Definition: Card.cpp:20