Keyple Plugin PC/SC C++ Library - 2.5.2
Component of the Keyple C++ middleware
PcscSupportedContactlessProtocol.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/PcscSupportedContactlessProtocol.hpp"
15
16namespace keyple {
17namespace plugin {
18namespace pcsc {
19
20const PcscSupportedContactlessProtocol
21 PcscSupportedContactlessProtocol::ISO_14443_4(
22 "ISO_14443_4",
23 "3B8[0-9A-F]8001(?!.*5A0A)(?!804F0CA000000306).*"
24 "*");
25const PcscSupportedContactlessProtocol
26 PcscSupportedContactlessProtocol::INNOVATRON_B_PRIME_CARD(
27 "INNOVATRON_B_PRIME_CARD", "3B8F8001805A0...................829000..");
28const PcscSupportedContactlessProtocol
29 PcscSupportedContactlessProtocol::MIFARE_ULTRA_LIGHT(
30 "MIFARE_ULTRA_LIGHT", "3B8F8001804F0CA0000003060300030000000068");
31const PcscSupportedContactlessProtocol
32 PcscSupportedContactlessProtocol::MIFARE_CLASSIC(
33 "MIFARE_CLASSIC", "3B8F8001804F0CA000000306030001000000006A");
34const PcscSupportedContactlessProtocol
35 PcscSupportedContactlessProtocol::MIFARE_DESFIRE(
36 "MIFARE_DESFIRE", "3B8180018080");
37const PcscSupportedContactlessProtocol
38 PcscSupportedContactlessProtocol::MEMORY_ST25(
39 "MEMORY_ST25", "3B8F8001804F0CA000000306070007D0020C00B6");
40
41PcscSupportedContactlessProtocol::PcscSupportedContactlessProtocol(
42 const std::string& name, const std::string& defaultRule)
43: mName(name)
44, mDefaultRule(defaultRule)
45{
46}
47
48const std::string&
49PcscSupportedContactlessProtocol::getDefaultRule() const
50{
51 return mDefaultRule;
52}
53
54const std::string&
55PcscSupportedContactlessProtocol::getName() const
56{
57 return mName;
58}
59
60} /* namespace pcsc */
61} /* namespace plugin */
62} /* namespace keyple */
Definition: Card.cpp:20