Project

General

Profile

Control Interface » History » Version 35

Hans-Martin Haase, 08/21/2015 10:18 AM
Correct tables.

1 8 Tobias Wich
h1. Client Control Interface
2 1 Moritz Horsch
3 8 Tobias Wich
The Client Control Interface is http based. The webserver of the eCard client is available only under http://localhost:24724.
4 1 Moritz Horsch
5 8 Tobias Wich
h2. Activation
6
7
*URL*
8
@http://127.0.0.1:24727/eID-Client@
9
10
*Method*
11
GET
12
13
*Query*
14 35 Hans-Martin Haase
| tcTokenURL    | The URL determines where the client can retrieve the TC Token. See TR-03112-7, section 3.2 | Mandatory |
15
| ifdName       | The ifdName determines the card terminal.|  Optional[1] |
16 24 Tobias Wich
| slotIndex     | The slotIndex determines the slot in the terminal.| Optional[1] |
17 35 Hans-Martin Haase
| contextHandle | The contextHandle addresses a specific IFD. | Optional[1] |
18
| slotHandle    | The slotHandle determines a connected eCard. See TR-03112-6, section 3.2.1. | Optional[1] |
19 8 Tobias Wich
| cardType      | The cardType determines the type of card which must be selected. | Optional[1] |
20
21
*Returns*
22
| 200 OK                    | The refresh address is comprised in the Message Body (Hack for Mac OS Safari). |
23
| 303 See Other             | The Location field in the response should contain the refresh address. |
24
| 400 Bad Request           | Malformed GET request, e.g. parameters are missing. |
25
| 500 Internal Server Error | Other errors. |
26 20 Tobias Wich
| 502 Bad Gateway           | Server where the TCToken was requested, didn't answer or returned an invalid response. |
27 8 Tobias Wich
28
*Content-Types*
29
| text/html | Webpage with user evaluatable content. E.g. error page, manual redirect, ... |
30
31
32
*Description*
33
The interface can be used to start the eID application.
34
35
The parameters ifdName, contextHandle, slotHandle and cardType address a particular eCard, or a type of card.
36
There are three meaningful combinations of the optional parameters:
37
* _none_
38
 Use the fist nPa available. Display a "Please insert nPa" dialog if needed. This is the behaviour of the AusweisApp.
39 13 Tobias Wich
 In other words the lack of the cardType parameter sets it to the default value @http://bsi.bund.de/cif/npa.xml@, and thus the next rule becomes effective.
40 8 Tobias Wich
* _cardType_
41
 Use the fist card of the specified type which is available. Display a "Please insert <cardType>" dialog if needed.
42 13 Tobias Wich
 A special case must be made when software certificates (cardType=@http://openecard.org/cif/soft-credential@) are used. In that case no dialog is shown, when there is no certificate. Instead an error is produced.
43 8 Tobias Wich
* _ifdName_, _contextHandle_, _slotHandle_
44
 Use exactly the card matching the parameters.
45 13 Tobias Wich
  cardType is requested from the selected card directly. If there is no such card, an error is produced.
46 8 Tobias Wich
47
48
*Notes*
49
50 1 Moritz Horsch
<pre>
51
TODO
52
* What happens if the Client Activator cannot start an application?
53
</pre>
54
55 11 Tobias Wich
During the processing of the activation, a TCToken is fetched from a remote server.
56
The TCToken is defined as follows:
57
<pre><code class="xml">
58 28 Max Tuengerthal
<element name="TCToken" type="TCTokenType" />
59 1 Moritz Horsch
60 11 Tobias Wich
<complexType name="TCTokenType">
61
  <sequence>
62
    <element name="ServerAddress" type="anyURI" />
63
    <element name="SessionIdentifier" type="string" />
64 1 Moritz Horsch
    <element name="RefreshAddress" type="anyURI" />
65 25 Max Tuengerthal
    <element name="CommunicationErrorAddress" type="anyURI" minOccurs="0" />
66
    <element name="Binding" type="anyURI" />
67
    <element name="PathSecurity-Protocol" type="anyURI" minOccurs="0" />
68
    <element name="PathSecurity-Parameters" minOccurs="0">
69 11 Tobias Wich
      <complexType>
70
        <choice>
71
          <element name="PSK" type="hexBinary" />
72
        </choice>
73
      </complexType>
74
    </element>
75
  </sequence>
76
</complexType>
77
</code></pre>
78 1 Moritz Horsch
79 11 Tobias Wich
The contents of the elements are defined as follows:
80
* ServerAddress
81
 Must contain a https-URL which shall be used by the eCA to connect to the authentication server.
82 1 Moritz Horsch
* SessionIdentifier
83
 Must contain a unique identifier of the current authentication session.
84 11 Tobias Wich
* RefreshAddress
85
 Must be a https-URL. The eCA redirects the browser to this URL (or the URL retrieved by following redirects starting from this URL) after conclusion of the online authentication.
86 25 Max Tuengerthal
* CommunicationErrorAddress
87 27 Tobias Wich
 If present, the eID-Client redirects the browser to this URL if an communication error occurred and no valid refreshURL could be determined. The URL MAY contain a session ID.
88 11 Tobias Wich
* Binding
89 25 Max Tuengerthal
 Must be used to indicate that an authentication protocol according to [ISO24727-3] is to be performed over the session between eCA and the authentication server.
90 11 Tobias Wich
 Currently the following values are defined:
91
** @urn:liberty:paos:2006-08@
92 23 Tobias Wich
** @urn:ietf:rfc:2616@
93 11 Tobias Wich
* PathSecurity-Protocol
94
 This element specifies the security protocol, which is to be used for securing the connection between eCA and AS.
95
 Currently the following values are defined:
96 12 Tobias Wich
** @urn:ietf:rfc:4346@
97 32 Tobias Wich
   TLSv1.1 according to [RFC4346].
98
** @urn:ietf:rfc:5246@
99
   TLSv1.2 according to [RFC5246].
100 11 Tobias Wich
** @urn:ietf:rfc:4279@
101
   TLS-PSK according to [RFC4279].
102
* PathSecurity-Parameter
103 32 Tobias Wich
   May be present to supply path security parameters such as PSK values. Must be present if PathSecurity-Protocol is @urn:ietf:rfc:4279@.
104 11 Tobias Wich
105 29 Max Tuengerthal
The following changes are made to the token type defined in [TR-03124-1]:
106 32 Tobias Wich
* PathSecurity-Protocol has additional values. (@urn:ietf:rfc:4346@, @urn:ietf:rfc:5246@)
107 30 Max Tuengerthal
* PathSecurity-Parameter is optional because of the additional TLS protocol (@urn:ietf:rfc:4346@).
108 8 Tobias Wich
109
h2. GetStatus[1]
110
111
*URL*
112
@http://127.0.0.1:24727/getStatus@
113
114 34 Hans-Martin Haase
or 
115
116
@http://127.0.0.1:24727/eID-Client?Status@
117
118
The second URL was made available later to be conform to the newest version of BSI-TR03124.
119
120 8 Tobias Wich
*Method*
121
GET
122
123
*Query*
124 35 Hans-Martin Haase
| session | The session parameter establishes an event queue for further requests with waitforChange. | Optional |
125 8 Tobias Wich
126
*Returns*
127
| 200 OK                    | Status element (see below). |
128 35 Hans-Martin Haase
| 400 Bad Request           | Malformed GET request, e.g. session parameter is too weak. |
129 8 Tobias Wich
| 500 Internal Server Error | Errors in the smartcard stack or the webserver. |
130
131 16 Tobias Wich
<pre><code class="xml">
132 18 Tobias Wich
<complexType name="StatusType" xmlns:oec="http://ws.openecard.org/schema" targetNamespace="http://ws.openecard.org/schema">
133 16 Tobias Wich
  <sequence>
134
    <element name="ConnectionHandle" type="iso:ConnectionHandleType" maxOccurs="unbounded" minOccurs="0" />
135
    <element name="UserAgent"                                        maxOccurs="1"         minOccurs="0">
136
      <complexType>
137 17 Tobias Wich
        <sequence>
138
          <element name="Name"            type="string" />
139
          <element name="VersionMajor"    type="integer" />
140
          <element name="VersionMinor"    type="integer" maxOccurs="1" minOccurs="0" />
141
          <element name="VersionSubminor" type="integer" maxOccurs="1" minOccurs="0" />
142
        </sequence>
143 16 Tobias Wich
      </complexType>
144
    </element>
145
    <element name="SupportedAPIVersions" maxOccurs="unbounded" minOccurs="0">
146
      <complexType>
147 17 Tobias Wich
        <sequence>
148
          <element name="Name"            type="string" />
149
          <element name="VersionMajor"    type="integer" />
150
          <element name="VersionMinor"    type="integer" maxOccurs="1" minOccurs="0"/>
151
          <element name="VersionSubminor" type="integer" maxOccurs="1" minOccurs="0"/>
152
        </sequence>
153 16 Tobias Wich
      </complexType>
154
    </element>
155 22 Tobias Wich
    <element name="SupportedCards" maxOccurs="unbounded" minOccurs="0">
156
      <complexType>
157
        <sequence>
158
          <element name="CardType" type="anyURI" maxOccurs="1" minOccurs="1" />
159
          <element name="DIDProtocols" type="anyURI" maxOccurs="unbounded" minOccurs="0" />
160
        </sequence>
161
      </complexType>
162
    </element>
163 16 Tobias Wich
    <element name="SupportedDIDProtocols" type="anyURI" maxOccurs="unbounded" minOccurs="0" />
164
    <element name="AdditionalFeatures"    type="anyURI" maxOccurs="unbounded" minOccurs="0" />
165 1 Moritz Horsch
  </sequence>
166
</complexType>
167
168
<element name="Status">
169
  <complexType>
170
    <complexContent>
171
      <extension base="oec:StatusType">
172 17 Tobias Wich
        <sequence />
173 1 Moritz Horsch
      </extension>
174
    </complexContent>
175
  </complexType>
176
</element>
177
</code></pre>
178 17 Tobias Wich
179
The contents of the Status element are defined as follows:
180
* ConnectionHandle
181
  List of ConnectionHandles reflecting the currently available terminals, cards and their types.
182
* UserAgent
183
  Description of the user agent (client). 
184
** Name must be set to "Open eCard App" for all client types of the Open eCard App.
185
** VersionMajor, VersionMinor and VersionSubminor correspond to the major, minor and patch fields in the Version class.
186
   (see source:common/src/main/java/org/openecard/client/common/Version.java)
187
* SupportedAPIVersions
188 1 Moritz Horsch
  This element names and describes all supported API versions. At the moment, this is solely the eCard-API.
189
** Name and the version elements are one of
190 17 Tobias Wich
*** @http://www.bsi.bund.de/ecard/api@, 1, 1, @not set@
191 22 Tobias Wich
* SupportedCards
192
  List of supported DIDProtocols per card type. That means the list of DIDProtocols, for which an implementation exists and which are listed in the respective CardInfo file.
193 17 Tobias Wich
* SupportedDIDProtocols
194
  List of supported DID protocols. That means the list of SAL modules' DID protocol URIs registered in the client.
195
* AdditionalFeatures
196
  Not yet defined, but could be further stuff like a Signature plugin etc.
197 8 Tobias Wich
198
*Content-Types*
199
| text/xml  | The Status element. |
200 15 Tobias Wich
| text/html | Message in case of an error. |
201 8 Tobias Wich
202
203
*Description*
204
The interface can be used to request information about the eID application and its current state.
205
206
h2. WaitForChange
207
208
*URL*
209
@http://127.0.0.1:24727/waitForChange@
210
211
*Method*
212 1 Moritz Horsch
GET
213 8 Tobias Wich
214
*Query*
215 10 Tobias Wich
| session | The session of a previously set up event queue (see [[Client_Activation#GetStatus1|GetStatus]]). | Mandatory | 
216 8 Tobias Wich
217
*Returns*
218
| 200 OK                    | StatusChange element (see below). |
219 14 Tobias Wich
| 400 Bad Request           | Malformed GET request, e.g. session parameter is too weak. |
220 8 Tobias Wich
| 500 Internal Server Error | Errors in the smartcard stack or the webserver. |
221
222 19 Tobias Wich
<pre><code class="xml">
223
<complexType name="StatusChangeType" xmlns:oec="http://ws.openecard.org/schema" targetNamespace="http://ws.openecard.org/schema">
224
  <sequence>
225
    <element name="ConnectionHandle" type="iso:ConnectionHandleType" maxOccurs="1" minOccurs="1" />
226
    <element name="Action"           type="anyURI"                   maxOccurs="1" minOccurs="1" />
227
  </sequence>
228
</complexType>
229
230
<element name="StatusChange">
231
  <complexType>
232
    <complexContent>
233
      <extension base="oec:StatusChangeType">
234
        <sequence />
235
      </extension>
236
    </complexContent>
237
  </complexType>
238
</element>
239
</code></pre>
240
241
The contents of the StatusChange element are defined as follows:
242
243
* ConnectionHandle
244
  The meaning of the ConnectionHandle parameter is exactly as in the StartPAOS call defined in [BSI-TR-03112-7, Section 2.6].
245
* Action
246
  This element contains the URI describing the event. Currently there are the following event types defined:
247
** http://openecard.org/event/terminal_added
248
** http://openecard.org/event/terminal_removed
249
** http://openecard.org/event/card_inserted
250
** http://openecard.org/event/card_removed
251
** http://openecard.org/event/card_recognized
252
253 8 Tobias Wich
254
*Content-Types*
255
| text/xml  | The StatusChange element. |
256 15 Tobias Wich
| text/html | Message in case of an error. |
257 8 Tobias Wich
258
259
*Description*
260
The interface can be used to request status change information after an initial GetStatus call.
261
262
263
---
264
265
fn1. Openecard proposal: This parameter/interface is an Open eCard specific extension. It is not part of the official eCard specification.