CardReaderProvider-Bluetooth-Feitian-Android

The CardReaderProvider-Bluetooth-Feitian-Android library provides functionality to use the Bluetooth Feitian devices on Android devices.

Лицензия

Лицензия

Категории

Категории

IDE Инструменты разработки
Группа

Группа

de.gematik.ti
Идентификатор

Идентификатор

cardreader.provider.bluetooth.feitian
Последняя версия

Последняя версия

1.1.4
Дата

Дата

Тип

Тип

aar
Описание

Описание

CardReaderProvider-Bluetooth-Feitian-Android
The CardReaderProvider-Bluetooth-Feitian-Android library provides functionality to use the Bluetooth Feitian devices on Android devices.
Ссылка на сайт

Ссылка на сайт

https://github.com/gematik/ref-CardReaderProvider-Bluetooth-Feitian-Android
Организация-разработчик

Организация-разработчик

de.gematik
Система контроля версий

Система контроля версий

https://github.com/gematik/ref-CardReaderProvider-Bluetooth-Feitian-Android

Скачать cardreader.provider.bluetooth.feitian

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/de.gematik.ti/cardreader.provider.bluetooth.feitian/ -->
<dependency>
    <groupId>de.gematik.ti</groupId>
    <artifactId>cardreader.provider.bluetooth.feitian</artifactId>
    <version>1.1.4</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/de.gematik.ti/cardreader.provider.bluetooth.feitian/
implementation 'de.gematik.ti:cardreader.provider.bluetooth.feitian:1.1.4'
// https://jarcasting.com/artifacts/de.gematik.ti/cardreader.provider.bluetooth.feitian/
implementation ("de.gematik.ti:cardreader.provider.bluetooth.feitian:1.1.4")
'de.gematik.ti:cardreader.provider.bluetooth.feitian:aar:1.1.4'
<dependency org="de.gematik.ti" name="cardreader.provider.bluetooth.feitian" rev="1.1.4">
  <artifact name="cardreader.provider.bluetooth.feitian" type="aar" />
</dependency>
@Grapes(
@Grab(group='de.gematik.ti', module='cardreader.provider.bluetooth.feitian', version='1.1.4')
)
libraryDependencies += "de.gematik.ti" % "cardreader.provider.bluetooth.feitian" % "1.1.4"
[de.gematik.ti/cardreader.provider.bluetooth.feitian "1.1.4"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.25
org.yaml : snakeyaml jar 1.9
de.gematik.ti : openhealthcard.common jar 1.1.2
de.gematik.ti : utils jar 1.2.1
com.google.dagger : dagger jar 2.19
org.greenrobot : eventbus jar 3.1.1

Модули Проекта

Данный проект не имеет модулей.

Bluetooth-Feitian-CardReaderProvider

Introduction

This part describes the usage of low level CardReaderProvider for feitian bluetooth CardReader in your application.

API Documentation

Generated API docs are available at https://gematik.github.io/ref-CardReaderProvider-Bluetooth-Feitian-Android.

License

Licensed under the Apache License, Version 2.0.

Overview

FeitianBluetoothCardReaderProvider

Integration

The Feitian Bluetooth CardReaderProvider needs a descriptor behind YOUR.PROVIDER\src\main\resources\META-INF\services with filename de.gematik.ti.cardreader.provider.spi.ICardReaderControllerProvider and the content of the package and class which implements the service provider interface de.gematik.ti.cardreader.provider.bluetooth.feithian.control.FeitianCardReaderProvider.

Hardware

The integrated Feitian Combo SDK supports the following FEITAN Readers: bR301,iR301,bR301BLE,bR500.

Control

FeitianCardReaderProvider

The FeitianCardReaderProvider class needs implementation of the interface 'ICardReaderControllerProvider' to handle listener and provide methods to inform connected listeners about card reader changes.

FeitianCardReaderProvider

FeitianCardReaderController

The FeitianCardReaderController class extends the abstract class ’AbstractCardReaderController' to handle necessary permissions and checking if the application context is set. Returns a list with currently connected Feitian cardReaders and informs about Reader connection and disconnection.

FeitianCardReaderController

FeitianBluetoothReceiver

The FeitianBluetoothReceiver class extends the BroadCastReceiver class that receives and handles broadcast intents sent by {@link android.content.Context#sendBroadcast(Intent)}. The actions of the intents that are being handled are changes in the state of the bluetooth adapter (enable / change) as well as connect and disconnect a bluetooth device.

FeitianBluetoothReceiver

FeitianConnector

Creates a Socket to the connected Feitian bluetooth device.

FeitianConnector

Entities

FeitianCard

A Feithian Bluetooth Smart Card with which a connection has been established. Card objects are obtained by calling {@link FeitianConnector#run()} if a socket to the bluetooth device is connected. Works as adapter to the Feitian Bluetooth SDK.

FeitianCard

FeitianCardReader

A Bluetooth Smart Card Reader, sometimes referred to as a Bluetooth Card Reader implements the Interface ICardReader.

FeitianCardReader

FeitianCardChannel

A logical channel connection to a Bluetooth Smart Card. It is used to exchange APDUs with a Smart Card using Bluetooth/CCID. A BluetoothCardChannel object can be obtained by calling the method FeitianCard.getBasicChannel or FeitianCard.openLogicalChannel

FeitianCardChannel

CardStatusHandler

Each FeitianCardReader needs an Handler for Card Event. This Handler compute the card reader card events and transmit the suited events to EventBus subscriber.

CardStatusHandler

Getting Started

Build setup

To use CardReaderProvider for feitian bluetooth CardReader in a project, you need just to include following dependency:

Gradle dependency settings to use CardReaderProvider for feitian bluetooth CardReader library.

dependencies {
    implementation group: 'de.gematik.ti', name: 'cardreader.provider.bluetooth.feitian', version: '1.1.4'
}

Maven dependency settings to use CardReaderProvider for feitian bluetooth CardReader library.

<dependencies>
    <dependency>
        <groupId>de.gematik.ti</groupId>
        <artifactId>cardreader.provider.bluetooth.feitian</artifactId>
        <version>1.1.4</version>
    </dependency>
</dependencies>
de.gematik.ti

Gematik

Версии библиотеки

Версия
1.1.4