This is the repository for the C++ implementation of the 'Eclipse Keyple' API.
The API is currently divided in two major layers:
- The ‘Keyple Core' : a Secure Element Proxy API which allows managing SE readers in a generic way, whaterver the reader driver or environment, and for standalone or distributed solution (Keyple Core User Guide).
- A ‘Calypso Keyple extension' : a high level Calypso Processing API allowing to operate commands with a Calypso Portable Object, and to manage a secure Calypso transaction (Keyple Calypso User Guide).
Dedicated reader’s plugins have to be implemented in order to interface the SE Proxy API with the specific reader’s drivers.
- Windows / Linux / MacOS
- G++ 6 and higher, MSVC++ 14 (other compilers untested)
- Modules that are provided as artifacts
- keyple-core: source and unit tests for the SE Proxy module (artifact : keyple-java-core)
- keyple-calypso: source and unit tests for the Calypso library (artifact : keyple-java-calypso)
- keyple-plugin: source and unit tests for the different plugins: PC/SC, Stub, etc.
- Developer support, testing
- example: source for Keyple implementation examples, generic or Calypso specific.
Keyple features global for any Secure Element solution:
Features | Packages |
---|---|
Selections of Secure Elements (high level API) | keyple::core::selection |
Management of SE readers | keyple::core::seproxy |
Notifications of reader plug/unplug, of SE insertion/remove
|
keyple::core::seproxy::event |
Communication protocols filters (setting for contactless/contacts SE Reader) | keyple::core::seproxy::protocol |
Reader plugins implementation support
|
keyple::core::seproxy::plugin |
Transmition of grouped APDU commands to a SE Reader (low level API) | keyple::core::seproxy::message |
SE specific library implementation support
|
keyple::core::command |
Keyple features defined to support the Calypso solution:
Features | Packages |
---|---|
Calypso Portable Object commands and secure transaction management
|
keyple::calypso::transaction |
Calypso PO responses data parsing | keyple::calypso::command::po.parser |
Calypso SAM responses data parsing | keyple::calypso::command::sam.parser |
Calypso PO & SAM commands' sets
|
|
Depending on the targetting usage: implementation of a ticketing application (blue circle), a reader plugin (red circle), or a SE library (green circle), only specific Keyple packages must be imported.
- generic packages for any SE solution
- specific packages for Calypso
Examples provided in this project relies on symbolic links to handle their common dependencies. (Please refer to this file for more information).
Although symlink support should be provided out of the box for Unix users, Windows users should be aware that the git option core.symlinks
needs to be enabled before cloning this repo. Several solutions can be considered:
- When installing git for Windows, an option
Enable symbolic links
can be choosen. If it has not been enabled and you want to set it via the installer, a reinstallation is needed - If you do not want to reinstall git, this option can be enabled afterward via the command line
git config core.symlinks true
- Also, the option can be enabled once only for this specific cloning operation with
git clone -c core.symlinks=true REPO_URL
It is important to note that for this option to be actually working, the Windows user needs to have the SeCreateSymbolicLink permission: a user with admin rights is typically granted with this permission.
This guide helps developer that want to contribute to Keyple components base code. You can fork the project and contribute to it. Every contribution will be reviewed by the developper team and scan by our CI and quality code tools before being merged to the base code.
Here are the prerequisites to build the keyple components (dynamic libraries)
- G++ 6 and higher, MSVC++ 14 (other compilers untested)
- libpcsclite1 package installed (Linux) to build the PC/SC plugin
On Linux and macOS, the following command will build all the artifacts at once
mkdir build; cd build; cmake .. && make
If using Windows or IDEs, CMake support must be installed. Compilation should automatically be handled.