ETSI TS 131 213 V15.0.0 (2018-07)

Universal Mobile Telecommunications System (UMTS); LTE; Test specification for (U)SIM; Application Programming Interface (API) for Java Cardâ„¢ (3GPP TS 31.213 version 15.0.0 Release 15)

ETSI TS 131 213 V15.0.0 (2018-07)

Name:ETSI TS 131 213 V15.0.0 (2018-07)   Standard name:Universal Mobile Telecommunications System (UMTS); LTE; Test specification for (U)SIM; Application Programming Interface (API) for Java Cardâ„¢ (3GPP TS 31.213 version 15.0.0 Release 15)
Standard number:ETSI TS 131 213 V15.0.0 (2018-07)   language:English language
Release Date:12-Jul-2018   technical committee:3GPP CT 6 - Smart Card Application Aspects (formely T3)
Drafting committee:   ICS number:
ETSI TS 131 213 V15.0.0 (2018-07)






TECHNICAL SPECIFICATION
Universal Mobile Telecommunications System (UMTS);
LTE;
Test specification for (U)SIM;
Application Programming Interface (API) for Java Card™
(3GPP TS 31.213 version 15.0.0 Release 15)



---------------------- Page: 1 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 1 ETSI TS 131 213 V15.0.0 (2018-07)



Reference
RTS/TSGC-0631213vf00
Keywords
LTE,UMTS
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 only prevailing document is the
print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.
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 2018.
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 protected for the benefit of its Members.

GSM and the GSM logo are trademarks registered and owned by the GSM Association.
ETSI

---------------------- Page: 2 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 2 ETSI TS 131 213 V15.0.0 (2018-07)
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 3rd Generation Partnership Project (3GPP).
The present document may refer to technical specifications or reports using their 3GPP identities, UMTS identities or
GSM identities. These should be interpreted as being references to the corresponding ETSI deliverables.
The cross reference between GSM, UMTS, 3GPP and ETSI identities can be found under
.
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: 3 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 3 ETSI TS 131 213 V15.0.0 (2018-07)
Contents
Intellectual Property Rights . 2
Foreword . 2
Modal verbs terminology . 2
Foreword . 6
1 Scope . 7
2 References . 7
3 Definitions, symbols and abbreviations . 8
3.1 Definitions . 8
3.2 Abbreviations . 8
4 Test environment . 9
4.1 Applicability . 9
4.2 Test environment description . 9
4.3 Tests format . 9
4.3.1 Test area reference . 9
4.3.1.1 Conformance requirements . 10
4.3.1.2 Test area files . 10
4.3.1.3 Test procedure . 11
4.3.1.4 Test coverage . 11
4.4 Initial conditions . 11
4.5 Package name . 11
4.6 AID coding . 11
4.7 Test equipment . 12
4.7.1 Test tool . 12
4.7.2 Interfaces and classes use . 13
4.7.3 Util package . 13
4.7.4 Java Software Development kit version . 13
5 Test plan . 13
5.1 Package uicc.usim.access package . 13
5.1.1 Interface SIMConstants . 13
5.1.2 Interface USIMConstants . 13
5.2 Package uicc.usim.toolkit package . 13
5.2.1 Interface ToolkitConstants . 13
5.2.2 Interface USATEnvelopeHandler . 13
5.2.2.1 Method getSecuredDataLength . 14
5.2.2.2 Method getSecuredDataOffset . 18
5.2.2.3 Method getShortMessageLength . 22
5.2.2.4 Method getShortMessageOffset . 25
5.2.2.5 Method getTPUDLOffset . 29
5.2.2.6 Method getUserDataLength . 31
5.2.2.7 Method getItemIdentifier . 34
5.2.2.8 Method getChannelIdentifier . 35
5.2.2.9 Method getChannelStatus . 38
5.2.2.10 Method getSize . 40
5.2.2.11 Method getTag . 41
5.2.2.12 Method compareValue . 42
5.2.2.13 Method copy . 44
5.2.2.14 Method copyValue . 46
5.2.2.15 Method findAndCompareValue(byte tag, byte[] compareBuffer, short compareOffset) . 48
5.2.2.16 Method findAndCompareValue(byte tag, byte occurrence, short valueOffset, byte[]
compareBuffer, short compareOffset, short compareLength) . 51
5.2.2.17 Method findAndCopyValue(byte tag, byte[] dstBuffer, short dstOffset) . 54
5.2.2.18 Method findAndCopyValue(byte tag, byte occurrence, short valueOffset, byte[] dstBuffer, short
dstOffset, short dstLength) . 56
5.2.2.19 Method findTLV . 59
ETSI

---------------------- Page: 4 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 4 ETSI TS 131 213 V15.0.0 (2018-07)
5.2.2.20 Method getCapacity . 61
5.2.2.21 Method getLength . 62
5.2.2.22 Method getValueByte . 62
5.2.2.23 Method getValueLength . 63
5.2.2.24 Method getValueShort . 64
5.2.3 Interface USATTerminalProfile . 66
5.2.4 Class USATEnvelopeHandlerSystem . 66
5.2.4.1 Method getTheHandler . 66
5.2.5 Interface ToolkitRegistry . 67
5.2.5.1 Method clearEvent . 67
5.2.5.2 Method isEventSet . 68
5.2.5.3 Method setEvent . 69
5.2.5.4 Method setEventList . 72
5.3 (U)SAT Framework . 76
5.3.1 Minimum handler availability. 76
5.3.1.1 ProactiveHandler . 76
5.3.1.2 ProactiveResponseHandler . 81
5.3.1.3 EnvelopeHandler . 91
5.3.1.4 EnvelopeResponseHandler . 94
5.3.1.5 USATEnvelopeHandler . 103
5.3.1.6 Applet triggering with ongoing proactive session . 106
5.3.2 Handler integrity . 112
5.3.2.1 ProactiveResponseHandler . 112
5.3.2.2 EnvelopeHandler . 113
5.3.2.3 USATEnvelopeHandler . 124
5.3.3 Exception handling . 143
5.3.3.1 General Behaviour . 143
5.3.3.2 Interaction with Multiple Triggering . 145
5.3.4 Applet triggering . 146
5.3.4.1 EVENT_FORMATTED_SMS_PP_ENV . 146
5.3.4.2 EVENT_UNFORMATTED_SMS_PP_ENV . 148
5.3.4.3 EVENT_FORMATTED_SMS_PP_UPD . 150
5.3.4.4 EVENT_UNFORMATTED_SMS_PP_UPD . 151
5.3.4.5 EVENT_FORMATTED_SMS_CB . 154
5.3.4.6 EVENT_UNFORMATTED_SMS_CB . 155
5.3.4.7 EVENT_FORMATTED_USSD . 156
5.3.4.8 EVENT_UNFORMATTED_USSD . 157
5.3.5 Envelope response posting . 159
5.3.5.1 EVENT_MO_SHORT_MESSAGE_CONTROL_BY_SIM . 159
5.3.6 Toolkit installation . 161
5.3.6.1 Minimum security level . 161
5.3.6.2 TAR. 162
5.3.6.3 Access domain . 166
5.3.7 Other parts transferred to (U)SAT framework from API . 167
5.3.7.1 A handler is a temporary JCRE Entry Point object . 167
5.3.8 Framework security management . 168
5.3.8.1 Input data . 168
5.3.8.2 Output data . 177
5.3.9 Concatenated SMS . 179
5.3.9.1 Concatenation processing . 179
5.3.9.2 Test area files . 179
5.3.9.3 Test coverage . 180
5.3.9.4 Test procedure . 180
5.3.10 Cell Broadcast Service . 181
5.3.10.1 Multiple message reassembling . 181
5.3.10.2 Test area files . 182
5.3.10.3 Test coverage . 182
5.3.11 Concatenated USSD . 182
5.3.11.1 Concatenation processing . 183
5.3.11.2 Test area files . 183
5.3.11.3 Test coverage . 183
5.3.11.4 Test procedure . 183
ETSI

---------------------- Page: 5 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 5 ETSI TS 131 213 V15.0.0 (2018-07)
Annex A (normative): Class, methods and USATFramework tests acronyms. 185
A.1 Toolkit part . 185
A.1.1 USATEnvelopeHandler interface . 185
A.1.2 USATEnvelopeHandlerSystem method . 185
A.1. 3 ToolkitRegistry methods . 186
A.2 Acronyms for USATFramework tests . 186
A.2.1 Minimum handler availability . 186
A.2.2 Handler integrity . 186
A.2.3 Applet triggering . 186
A.2.4 Exception handling . 186
A.2.5 Envelope response posting . 187
A.2.6 Toolkit installation . 187
A.2.7 Other parts transferred from API to CAT RE . 187
A.2.8 Framework security . 187
A.2.9 Concatenated SMS . 187
A.2.10 Cell Broadcast Service . 187
Annex B (normative): Global prepersonalization . 188
Annex C (normative): Test file description . 189
Annex D (normative): uicc.usim.test.util package, (U)SIM interfaces and testing script
example . 190
Annex E (normative): Test Area files . 191
Annex F (informative): Change history . 192
History . 193

ETSI

---------------------- Page: 6 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 6 ETSI TS 131 213 V15.0.0 (2018-07)
Foreword
rd
This Technical Specification has been produced by the 3 Generation Partnership Project (3GPP).
The contents of the present document are subject to continuing work within the TSG and may change following formal
TSG approval. Should the TSG modify the contents of the present document, it will be re-released by the TSG with an
identifying change of release date and an increase in version number as follows:
Version x.y.z
where:
x the first digit:
1 presented to TSG for information;
2 presented to TSG for approval;
3 or greater indicates TSG 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.
ETSI

---------------------- Page: 7 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 7 ETSI TS 131 213 V15.0.0 (2018-07)
1 Scope
The present document covers the minimum characteristics considered necessary in order to provide compliance to
TS 31.130 [2].
The present document describes the technical characteristics and methods of test for testing the (U)SIM API for Java
TM
Card (TS 31.130 [2]) implemented in the (U)SIM. It specifies the following parts:
- test applicability;
- test environment description;
- tests format;
- test area reference;
- conformance requirements;
- test suite files;
- test procedure;
- test coverage; and
- a description of the associated testing tools that shall be used.
2 References
The following documents contain provisions which, through reference in this text, constitute provisions of the present
document.
• References are either specific (identified by date of publication, edition number, version number, etc.) or
non-specific.
• For a specific reference, subsequent revisions do not apply.
• For a non-specific reference, the latest version applies. In the case of a reference to a 3GPP document (including
a GSM document), a non-specific reference implicitly refers to the latest version of that document in the same
Release as the present document.
[1] ETSI TS 101 220: "Integrated Circuit Cards (ICC); ETSI numbering system for
telecommunication; Application providers (AID)".
[2] 3GPP TS 31 130 Release 6: "(U)SIM API for Java Card™"
[3] Void.
[4] 3GPP TS 31.102: "Characteristics of the USIM Application".
[5] 3GPP TS 51.011 Release 4: "Specification of the Subscriber Identity Module- Mobile Equipment
(SIM – ME) interface".
[6] 3GPP TS 23.041: "Technical realization of Cell Broadcast Service (CBS)".
[7] Void.
[8] 3GPP TS 31.111: "USIM Application Toolkit (USAT)".
[9] Void.
[10] 3GPP TS 31.115: "Secured packet structure for the (U)SIM Toolkit applications".
[11] 3GPP TS 23.040: "Technical realization of the Short Message Service (SMS)".
ETSI

---------------------- Page: 8 ----------------------
3GPP TS 31.213 version 15.0.0 Release 15 8 ETSI TS 131 213 V15.0.0 (2018-07)
[12] Sun Microsystems Java Card™ Specification: "Java Card™ 2.2.1 Application Programming
Interface".
[13] Sun Microsystems Java Car
...

  • Relates Information
  • ISO 8130-9:1992

    ISO 8130-9:1992 - Coating powders
    09-28
  • EN 352-2:2020/FprA1

    EN 352-2:2021/oprA1:2023
    09-28
  • IEC TS 61158-4:1999

    IEC TS 61158-4:1999 - Digital data communications for measurement and control - Fieldbus for use in industrial control systems - Part 4: Data Link protocol specification Released:3/24/1999 Isbn:2831847656
    09-28
  • HD 566 S1:1990

    HD 566 S1:1998
    09-28
  • ISO 5131:1982/Amd 1:1992

    ISO 5131:1982/Amd 1:1992
    09-28
  • EN 60598-2-22:1990

    EN 60598-2-22:1996
    09-27
  • ISO 8504-2:1992

    ISO 8504-2:1992 - Preparation of steel substrates before application of paints and related products -- Surface preparation methods
    09-27
  • EN 12165:2024

    prEN 12165:2022
    09-27
  • IEC TS 61158-6:1999

    IEC TS 61158-6:1999 - Digital data communications for measurement and control - Fieldbus for use in industrial control systems - Part 6: Application Layer protocol specification Released:3/24/1999 Isbn:2831847613
    09-27
  • ISO 4252:1992

    ISO 4252:1992 - Agricultural tractors -- Operator's workplace, access and exit -- Dimensions
    09-27