Project

General

Profile

Architecture » History » Version 8

Hans-Martin Haase, 08/24/2015 11:05 AM

1 3 Hans-Martin Haase
{{toc}}
2
3 1 Hans-Martin Haase
h1. Architecture
4
5 7 Hans-Martin Haase
On this wiki page and subsequent wiki pages the design and architecture of the Open eCard App is described. The pages are derived mainly from the following two papers:
6
* http://www.ecsec.de/pub/2012_Sicherheit.pdf
7
* http://www.ecsec.de/pub/2013_OID_Platform.pdf
8 1 Hans-Martin Haase
9 2 Hans-Martin Haase
h2. High Level Design
10
11
The Open eCard design is inspired by the eCard API Framework specified in BSI-TR03112 which itself relays on the standards CEN15480 and ISO/IEC24727. An overview of this high level design is provided in the following picture:
12
13
p=. !OpenECardHighLevelDesign.png(High level design of the Open eCard App)!
14
15
As the figure depicted the design is covered by multiple modules. This has the advantage that the components are more or less independent and exchangeable for instance the default IFD is implemented for a smart card stack called PC/SC but it might be simply replaced by an implementation for SICCT smart card terminal. Another example is the GUI module the richclient application uses a Swing implementation of the UI and in the Android client there it is replaced by an Android specific UI implementation. Following the main modules are explained.
16
17
h3. GUI (Graphical User Interface)
18
19 8 Hans-Martin Haase
The GUI is connected via an abstract interface which allow to easily exchange the underlying implementation. The abstract interface is required because an implementation is always specific for a platform for instance the Swing GUI of the Richclient is not usable on Android because the Java implementation of android does not provide the Swing framework. So an abstract description of the user interface was necessary, the abstract components are usable by all components requiring a interaction with the user. The platform dependent user interface implementation has to interpret the abstract components and visualize them.
20 2 Hans-Martin Haase
21
h3. IFD (Interface Device)
22
23
The _IFD_ provides a message oriented interface according to ISO/IEC 24727-4 which is capable to access ISO/IEC 7816-4 based devices like smart cards. As you can see in the the design picture the _IFD_ contains sub modules which provide additional interfaces for the communication with the devices. The depicted _PACE_ module enables the application to use the PACE protocol which allows secure communication between the device and the terminal accessing the device.
24
25
h3. EventManger
26
27
The _EventManager_ is responsible to detect hardware relevant events and propagates them to the rest of the system. Examples for such events are the addition or removal of a card reader or a card. The _CardRecognition_ module of the _EventManager_ is used to identify inserted cards. The recognition module is also extensible so it is easily possible to support a new smart card or device by providing a so called CardInfo file which is an XML file containing a description of the card. The description maps the ISO/IEC 7816 operations to the functions provided by the eCard API Framework.
28
29
h3. SAL (Service Access Layer)
30
31
Similar to the _IFD_ is the _SAL_ a message oriented interface according to ISO/IEC 24727-3. The _SAL_ provides als an extension mechanism, which enables the addition of new authentication protocols without changing major parts of the implementation.
32
33
h3. Dispatcher
34 1 Hans-Martin Haase
35 3 Hans-Martin Haase
The _Dispatcher_ provides a centralized entry point for the handling of incoming and outgoing messages. This reduces the amount of Java code and the complexity of the Open eCard App.
36 2 Hans-Martin Haase
37
h3. Add-ons
38 1 Hans-Martin Haase
39 3 Hans-Martin Haase
The Add-on system is an Framework which allows to extend the basic eID platform with different kinds of add-ons. The add-ons are manage by an AddonManager which uses currently two registries to load add-ons. There is a classpath registry which is responsible for loading the packages from the classpath so it just loads the integrated add-ons. For external add-ons there is a file registry which loads the add-on packages from a specific directory. If you would like to know more about the add-on system and development take look at our wiki site about add-ons. The page is [[Add-on System|here]].
40 2 Hans-Martin Haase
41 1 Hans-Martin Haase
h3. Bindings
42 2 Hans-Martin Haase
43 3 Hans-Martin Haase
_Add-ons_interact via _Bindings_ with applications of service providers. The components implements a transport mechanism like HTTP or SOAP and direct the messages in an abstract form to the _add-ons_.
44 2 Hans-Martin Haase
45 1 Hans-Martin Haase
46 3 Hans-Martin Haase
h3. Crypto
47 1 Hans-Martin Haase
48 3 Hans-Martin Haase
The _Crypto_ component encapsulates common cryptographic functions, which are used by other components. It is based on the "Bouncy Castle crypto library":http://www.bouncycastle.org/ which makes it easy to port it to platforms without support for the full Java Cryptography Architecture (JCA), such as Android for instance.
49 1 Hans-Martin Haase
50 2 Hans-Martin Haase
51 3 Hans-Martin Haase
h3. Browser Integration
52 2 Hans-Martin Haase
53 3 Hans-Martin Haase
The _Browser Integration_ module is just s symbol for applications in general, this is not restricted to just a browser. So every other application may e.g. call the @localhost@ interface to invoke for instance the @getStatus@ control interface to retrieve the current state of the eID client. Also the usage of an PKCS11 module for the browser or other applications which are able to use such modules is possible. More information of the PKCS11 topic are available in on the wiki page [[PKCS11|here]].
54 2 Hans-Martin Haase
55 4 Hans-Martin Haase
h2. Modularization of the source code
56 2 Hans-Martin Haase
57 3 Hans-Martin Haase
The project is written in Java and there are several build tools available. The Open eCard Team has chosen Maven as the way to go. Maven allows to define project with several sub projects/modules this made the process of transforming the abstract modularized design into the projects source code organization. An overview of the currently available modules is provided on the [[Project-Structure| Project Structure]] page.
58 1 Hans-Martin Haase
59 3 Hans-Martin Haase
h2. Control Interfaces
60 1 Hans-Martin Haase
61 3 Hans-Martin Haase
The eID client provides currently some interfaces to allows external applications to invoke functions via control interfaces which are accessible via the @localhost@ interface. The following interfaces are available.
62 1 Hans-Martin Haase
63 3 Hans-Martin Haase
|eID Activation |Triggers the authentication with the German eID card or other cards based on TLS authentication. |
64
|GetStatus      |Returns status information about the eID client.                                                 |
65
|WaitForChange  |Returns status changes after a previous GetStatus call.                                          |
66
|ShowUI         |Opens specific parts of the user interface.                                                      |
67
68
 
69
Detailed information about the control interface calls are available on a separate wiki page [[Control Interface|here]].
70 5 Hans-Martin Haase
71
72 6 Hans-Martin Haase
h2. TLS Design
73 5 Hans-Martin Haase
74
The primary library for cryptography related tasks in the Open eCard App is the Bouncy Castle library which is also used for the TLS connection. The design of the TLS interfaces is depicted in the [[TLS-Design| TLS Design]] wiki page.