Keyple Plugin PC/SC C++ Library - 2.5.2
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_ULTRALIGHT(
30 "MIFARE_ULTRALIGHT", "3B8F8001804F0CA0000003060300030.*");
31
32const PcscCardCommunicationProtocol
33 PcscCardCommunicationProtocol::ST25_SRT512(
34 "ST25_SRT512", "3B8F8001804F0CA0000003060(5|6|7)0007.*");
35
36const PcscCardCommunicationProtocol
37 PcscCardCommunicationProtocol::ISO_7816_3("ISO_7816_3", "3.*");
38
39PcscCardCommunicationProtocol::PcscCardCommunicationProtocol(
40 const std::string& name, const std::string& defaultRule)
41: mName(name)
42, mDefaultRule(defaultRule)
43{
44}
45
46const std::string&
47PcscCardCommunicationProtocol::getDefaultRule() const
48{
49 return mDefaultRule;
50}
51
52const std::string&
53PcscCardCommunicationProtocol::getName() const
54{
55 return mName;
56}
57
58} /* namespace pcsc */
59} /* namespace plugin */
60} /* namespace keyple */
Definition: Card.cpp:20