|
TECHNICAL SPECIFICATION
Smart Cards;
Connection Oriented Service API for
the Java Card™ platform
(Release 15)
---------------------- Page: 1 ----------------------
Release 15 2 ETSI TS 102 267 V15.0.0 (2019-02)
Reference
RTS/SCP-T006vf00
Keywords
API, protocol, smart card, testing, transport
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
The present document may be made available in electronic versions and/or in print. The content of any electronic and/or
print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any
existing or perceived difference in contents between such versions and/or in print, the prevailing version of an ETSI
deliverable is the one made publicly available in PDF format at www.etsi.org/deliver.
Users of the present document should be aware that the document may be subject to revision or change of status.
Information on the current status of this and other ETSI documents is available at
If you find errors in the present document, please send your comment to one of the following services:
Copyright Notification
No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying
and microfilm except as authorized by written permission of ETSI.
The content of the PDF version shall not be modified without the written authorization of ETSI.
The copyright and the foregoing restriction extend to reproduction in all media.
© ETSI 2019.
All rights reserved.
TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are trademarks of ETSI registered for the benefit of its Members.
TM TM
3GPP and LTE are trademarks of ETSI registered for the benefit of its Members and
of the 3GPP Organizational Partners.
oneM2M™ logo is a trademark of ETSI registered for the benefit of its Members and
of the oneM2M Partners.
GSM and the GSM logo are trademarks registered and owned by the GSM Association.
ETSI
---------------------- Page: 2 ----------------------
Release 15 3 ETSI TS 102 267 V15.0.0 (2019-02)
Contents
Intellectual Property Rights . 4
Foreword . 4
Modal verbs terminology . 4
1 Scope . 5
2 References . 5
2.1 Normative references . 5
2.2 Informative references . 6
3 Definition of terms, symbols and abbreviations . 6
3.1 Terms . 6
3.2 Symbols . 6
3.3 Abbreviations . 6
4 Overall description . 7
4.0 General . 7
4.1 Connection API concept . 7
5 API architecture . 7
5.0 General . 7
5.1 API usage . 7
5.1.1 Establishing a Connection . 7
5.1.2 Opening a BIPLink . 8
5.1.3 Creating an UICC Transport link . 9
5.1.4 Sending data over UICC Transport Link . 10
5.1.5 Receiving data . 11
5.2 Multiplexing through one BIP connection . 11
5.3 Behaviour in duplex communication . 11
5.3.1 Receiving data while sending data . 11
5.3.2 Sending data while reception of data is ongoing . 12
5.3.3 Receiving data of more than 1 connection simultaneously . 12
5.3.4 Sending data before applications returns from DataReceived . 12
5.4 Interference with other proactive commands . 12
5.5 Secured communication based on SCP81 . 12
5.5.0 General . 12
5.5.1 Sequence diagram . 14
Annex A (normative): Connection API . 15
Annex B (normative): Connection API identifiers . 16
Annex C (normative): Connection API package version management . 17
Annex D (informative): Bibliography . 18
Annex E (informative): Change history . 19
History . 20
ETSI
---------------------- Page: 3 ----------------------
Release 15 4 ETSI TS 102 267 V15.0.0 (2019-02)
Intellectual Property Rights
Essential patents
IPRs essential or potentially essential to normative deliverables may have been declared to ETSI. The information
pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found
in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in
respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web
server (https://ipr.etsi.org/).
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Trademarks
The present document may include trademarks and/or tradenames which are asserted and/or registered by their owners.
ETSI claims no ownership of these except for any which are indicated as being the property of ETSI, and conveys no
right to use or reproduce any trademark and/or tradename. Mention of those trademarks in the present document does
not constitute an endorsement by ETSI of products, services or organizations associated with those trademarks.
Foreword
This Technical Specification (TS) has been produced by ETSI Technical Committee Smart Card Platform (SCP).
The contents of the present document are subject to continuing work within TC SCP and may change following formal
TC SCP approval. If TC SCP modifies the contents of the present document, it will then be republished by ETSI with
an identifying change of release date and an increase in version number as follows:
Version x.y.z
where:
x the first digit:
0 early working draft;
1 presented to TC SCP for information;
2 presented to TC SCP for approval;
3 or greater indicates TC SCP approved document under change control.
y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections,
updates, etc.
z the third digit is incremented when editorial only changes have been incorporated in the document.
Modal verbs terminology
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and
"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of
provisions).
"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.
ETSI
---------------------- Page: 4 ----------------------
Release 15 5 ETSI TS 102 267 V15.0.0 (2019-02)
1 Scope
TM
The present document defines an Application Programming Interface for the Java Card to use transport protocols
(e.g. CAT_TP as defined in ETSI TS 102 127 [1]) for CAT applications.
This stage 2 document describes the interface functionalities, the interface working mechanisms and its information
flow.
2 References
2.1 Normative references
References are either specific (identified by date of publication and/or edition number or version number) or
non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the
referenced document (including any amendments) applies.
Referenced documents which are not found to be publicly available in the expected location might be found at
https://docbox.etsi.org/Reference/.
• In the case of a reference to a TC SCP document, a non-specific reference implicitly refers to the latest version
of that document in the same Release as the present document.
NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee
their long term validity.
The following referenced documents are necessary for the application of the present document.
[1] ETSI TS 102 127: "Smart Cards; Transport protocol for CAT applications; Stage 2 (Release 6)".
[2] ORACLE Java Card™ Specification: "Java Card™ 3.0.1 Virtual Machine Specification".
NOTE: Available at http://docs.oracle.com/javame/javacard/javacard.html.
[3] ETSI TS 101 220: "Smart Cards; ETSI numbering system for telecommunication application
providers".
[4] ETSI TS 102 223: "Smart Cards; Card Application Toolkit (CAT)".
[5] GlobalPlatform: "GlobalPlatform Card, Remote Application Management over HTTP, Card
Specification v2.2- Amendment B", Version 1.1.3.
NOTE: Available at http://www.globalplatform.org/.
[6] ETSI TS 102 483: "Smart cards; UICC-Terminal interface; Internet Protocol connectivity between
UICC and terminal".
[7] ETSI TS 102 225: "Smart Cards; Secured packet structure for UICC based applications".
ETSI
---------------------- Page: 5 ----------------------
Release 15 6 ETSI TS 102 267 V15.0.0 (2019-02)
2.2 Informative references
References are either specific (identified by date of publication and/or edition number or version number) or
non-specific. For specific references, only the cited version applies. For non-specific references, the latest version of the
referenced document (including any amendments) applies.
• In the case of a reference to a TC SCP document, a non-specific reference implicitly refers to the latest version
of that document in the same Release as the present document.
NOTE: While any hyperlinks included in this clause were valid at the time of publication, ETSI cannot guarantee
their long term validity.
The following referenced documents are not necessary for the application of the present document but they assist the
user with regard to a particular subject area.
Not applicable.
3 Definition of terms, symbols and abbreviations
3.1 Terms
For the purposes of the present document, the following terms apply:
BIPLink: interface to access the physical layer by means of the Bearer Independent Protocol according to ETSI
TS 102 223 [4]
transport layer: instance within the card framework which implements the transport protocol, e.g. CAT_TP
3.2 Symbols
Void.
3.3 Abbreviations
For the purposes of the present document, the following abbreviations apply:
ACK ACKnowledge
AID Application IDentifier
API Application Programming Interface
BIP Bearer Independent Protocol
NOTE: See ETSI TS 102 223 [4].
CAT Card Application Toolkit
NOTE: See ETSI TS 102 223 [4].
CAT_TP Card Application Toolkit Transport Protocol
NOTE: See ETSI TS 102 127[1].
HTTP HyperText Transfer Protocol
IP Internet Protocol
JCRE Java Card™ Runtime Environment
PDU Packet Data Unit
SCP81 Secure Channel Protocol '81'
NOTE: See "GlobalPlatform Card Specification, Amendment B" Version 1.1.3 [5].
SCWS Smart Card Web Server
ETSI
---------------------- Page: 6 ----------------------
Release 15 7 ETSI TS 102 267 V15.0.0 (2019-02)
SDU Service Data Unit
SMS Short Message Service
TCP Transmission Control Protocol
TLS Transport Layer Security
4 Overall description
4.0 General
The present document describes an API that provides applications a set of Connection Oriented Services. This API
provides either direct access to the transport protocols supported by the terminal (by using the BIP) or access to
transport protocol layers provided by the UICC, e.g. the CAT_TP protocol layer in the UICC or SCP81.
4.1 Connection API concept
Th
...