没有合适的资源?快使用搜索试试~ 我知道了~
GP Open Mobile API 测试规范之传输API v3.3
需积分: 5 0 下载量 149 浏览量
2023-02-06
11:11:13
上传
评论
收藏 2.31MB PDF 举报
温馨提示


试读
117页
GlobalPlatform Technology Open Mobile API Test Specification for Transport API Version 3.3 GP Open Mobile API 测试规范之传输API v3.3文档。
资源推荐
资源详情
资源评论













Copyright 2016-2018 GlobalPlatform, Inc. All Rights Reserved.
Recipients of this document are invited to submit, with their comments, notification of any relevant patents
or other intellectual property rights (collectively, “IPR”) of which they may be aware which might be
necessarily infringed by the implementation of the specification or other work product set forth in this
document, and to provide supporting documentation. The technology provided or described herein is
subject to updates, revisions, and extensions by GlobalPlatform. Use of this information is governed by
the GlobalPlatform license agreement and any use inconsistent with that agreement is strictly prohibited.
GlobalPlatformTechnology
OpenMobileAPITestSpecificationfor
TransportAPI
Version3.3
PublicRelease
November2018
DocumentReference:GPP_SPE_004

OMAPI Test Specification for Transport API – Public Release v3.3
R RIRP,G
UGGUGUGUGUGUP
UPUGUPUPGUPU
UG
THIS SPECIFICATION OR OTHER WORK PRODUCT IS BEING OFFERED WITHOUT ANY WARRANTY
WHATSOEVER, AND IN PARTICULAR, ANY WARRANTY OF NON-INFRINGEMENT IS EXPRESSLY
DISCLAIMED. ANY IMPLEMENTATION OF THIS SPECIFICATION OR OTHER WORK PRODUCT SHALL
BE MADE ENTIRELY AT THE IMPLEMENTER’S OWN RISK, AND NEITHER THE COMPANY, NOR ANY
OF ITS MEMBERS OR SUBMITTERS, SHALL HAVE ANY LIABILITY WHATSOEVER TO ANY
IMPLEMENTER OR THIRD PARTY FOR ANY DAMAGES OF ANY NATURE WHATSOEVER DIRECTLY
OR INDIRECTLY ARISING FROM THE IMPLEMENTATION OF THIS SPECIFICATION OR OTHER
WORK PRODUCT.

OMAPI Test Specification for Transport API – Public Release v3.3 3 / 117
R RIRP,G
UGGUGUGUGUGUP
UPUGUPUPGUPU
UG
Contents
1 Introduction............................................................................................................................8
1.1
Audience ............................................................................................................................................... 8
1.2
IPR Disclaimer....................................................................................................................................... 8
1.3
References ............................................................................................................................................ 8
1.4
Terminology and Definitions .................................................................................................................. 9
1.5
Abbreviations and Notations ............................................................................................................... 11
1.6
Revision History .................................................................................................................................. 12
2 Applicability..........................................................................................................................14
2.1
Applicability of the Tests ..................................................................................................................... 14
2.2
Format of the Table of Optional Features and Applicability Table ...................................................... 15
2.3
Table of DUT Options ......................................................................................................................... 16
2.4
Applicability Table ............................................................................................................................... 18
3 TestEnvironment.................................................................................................................23
3.1
Test Environment Description ............................................................................................................. 23
4 TestTool...............................................................................................................................24
4.1
UICC Simulator ................................................................................................................................... 24
4.2
UICC, eSE, and mSD .......................................................................................................................... 25
4.3
Test Controller ..................................................................................................................................... 25
4.4
Mobile Application and Test Controller ............................................................................................... 25
5 TestFormat...........................................................................................................................26
5.1
Conformance Requirements ............................................................................................................... 26
5.2
Initial Conditions .................................................................................................................................. 26
5.3
Test Procedure .................................................................................................................................... 26
5.4
General Initial Conditions .................................................................................................................... 27
5.5
Secure Element Test Applets .............................................................................................................. 28
5.6
APDU Interface ................................................................................................................................... 30
5.7
Access Control Configuration.............................................................................................................. 33
6 TestCases............................................................................................................................34
6.1
Class SEService ................................................................................................................................. 34
6.1.1
Constructor: SEService(Context context, SEService.CallBack listener) ..................................... 34
6.1.1.1
Conformance Requirements ................................................................................................ 34
6.1.1.2
Initial Conditions .................................................................................................................. 34
6.1.1.3
Test Procedure .................................................................................................................... 34
6.1.2
Method: Reader[] getReaders() ................................................................................................... 36
6.1.2.1
Conformance Requirements ................................................................................................ 36
6.1.2.2
Initial Conditions .................................................................................................................. 37
6.1.2.3
Test Procedure .................................................................................................................... 37
6.1.3
Method: Boolean isConnected () ................................................................................................. 37
6.1.3.1
Conformance Requirements ................................................................................................ 37
6.1.3.2
Initial Conditions .................................................................................................................. 37
6.1.3.3
Test Procedure .................................................................................................................... 37
6.1.4
Method: Void shutdown () ............................................................................................................ 38
6.1.4.1
Conformance Requirements ................................................................................................ 38
6.1.4.2
Initial Conditions .................................................................................................................. 38
6.1.4.3
Test Procedure .................................................................................................................... 38
6.1.5
Method: String getVersion() ......................................................................................................... 40
6.1.5.1
Conformance Requirements ................................................................................................ 40

4 / 117 OMAPI Test Specification for Transport API – Public Release v3.3
R RIRP,G
UGGUGUGUGUGUP
UPUGUPUPGUPU
UG
6.1.5.2
Initial Conditions .................................................................................................................. 40
6.1.5.3
Test Procedure .................................................................................................................... 40
6.2
Class (or interface): SEService.CallBack ............................................................................................ 40
6.2.1
Method: Void serviceConnected(SEService service) .................................................................. 40
6.2.1.1
Conformance Requirements ................................................................................................ 40
6.2.1.2
Initial Conditions .................................................................................................................. 41
6.2.1.3
Test Procedure .................................................................................................................... 41
6.3
Class Reader....................................................................................................................................... 41
6.3.1
Method: String getName() ............................................................................................................ 41
6.3.1.1
Conformance Requirements ................................................................................................ 41
6.3.1.2
Initial Conditions .................................................................................................................. 42
6.3.1.3
Test Procedure .................................................................................................................... 42
6.3.2
Method: SEService getSEService() ............................................................................................. 42
6.3.2.1
Conformance Requirements ................................................................................................ 42
6.3.2.2
Initial Conditions .................................................................................................................. 42
6.3.2.3
Test Procedure .................................................................................................................... 43
6.3.3
Method: Boolean isSecureElementPresent() ............................................................................... 43
6.3.3.1
Conformance Requirements ................................................................................................ 43
6.3.3.2
Initial Conditions .................................................................................................................. 43
6.3.3.3
Test Procedure .................................................................................................................... 43
6.3.4
Method: Session openSession() .................................................................................................. 44
6.3.4.1
Conformance Requirements ................................................................................................ 44
6.3.4.2
Initial Conditions .................................................................................................................. 44
6.3.4.3
Test Procedure .................................................................................................................... 45
6.3.5
Method: Void closeSessions() ...................................................................................................... 45
6.3.5.1
Conformance Requirements ................................................................................................ 45
6.3.5.2
Initial Conditions .................................................................................................................. 45
6.3.5.3
Test Procedure .................................................................................................................... 46
6.3.6
Method: Reader:Event types value .............................................................................................. 46
6.3.6.1
Conformance Requirements ................................................................................................ 46
6.3.6.2
Initial Conditions .................................................................................................................. 47
6.3.6.3
Test Procedure .................................................................................................................... 47
6.3.7
Method: Void registerReaderEventCallback(Reader.EventCallBack cb) .................................... 47
6.3.7.1
Conformance Requirements ................................................................................................ 47
6.3.7.2
Initial Conditions .................................................................................................................. 47
6.3.7.3
Test Procedure .................................................................................................................... 49
6.3.8
Method: Boolean unregisterReaderEventCallback(Reader.EventCallBack cb) .......................... 54
6.3.8.1
Conformance Requirements ................................................................................................ 54
6.3.8.2
Initial Conditions .................................................................................................................. 55
6.3.8.3
Test Procedure .................................................................................................................... 55
6.4
Class Session...................................................................................................................................... 58
6.4.1
Method: Reader getReader() ....................................................................................................... 58
6.4.1.1
Conformance Requirements ................................................................................................ 58
6.4.1.2
Initial Conditions .................................................................................................................. 58
6.4.1.3
Test Procedure .................................................................................................................... 59
6.4.2
Method: Byte[] getATR() .............................................................................................................. 59
6.4.2.1
Conformance Requirements ................................................................................................ 59
6.4.2.2
Initial Conditions .................................................................................................................. 59
6.4.2.3
Test Procedure .................................................................................................................... 60
6.4.3
Method: Void close() .................................................................................................................... 60
6.4.3.1
Conformance Requirements ................................................................................................ 60
6.4.3.2
Initial Conditions .................................................................................................................. 60

OMAPI Test Specification for Transport API – Public Release v3.3 5 / 117
R RIRP,G
UGGUGUGUGUGUP
UPUGUPUPGUPU
UG
6.4.3.3
Test Procedure .................................................................................................................... 61
6.4.4
Method: Boolean isClosed() ......................................................................................................... 61
6.4.4.1
Conformance Requirements ................................................................................................ 61
6.4.4.2
Initial Conditions .................................................................................................................. 62
6.4.4.3
Test Procedure .................................................................................................................... 62
6.4.5
Method: Void closeChannels() ..................................................................................................... 62
6.4.5.1
Conformance Requirements ................................................................................................ 62
6.4.5.2
Initial Conditions .................................................................................................................. 62
6.4.5.3
Test Procedure .................................................................................................................... 63
6.4.6
Method: Channel openBasicChannel(Byte[] aid) ......................................................................... 63
6.4.6.1
Conformance Requirements ................................................................................................ 63
6.4.6.2
Initial Conditions .................................................................................................................. 64
6.4.6.3
Test Procedure .................................................................................................................... 64
6.4.7
Method: Channel openLogicalChannel(byte[] aid) ....................................................................... 67
6.4.7.1
Conformance Requirements ................................................................................................ 67
6.4.7.2
Initial Conditions .................................................................................................................. 68
6.4.7.3
Test Procedure .................................................................................................................... 68
6.4.8
Method: Channel openLogicalChannel(byte[] aid) – Extended logical channels ......................... 75
6.4.8.1
Conformance Requirements ................................................................................................ 75
6.4.8.2
Initial Conditions .................................................................................................................. 76
6.4.8.3
Test Procedure .................................................................................................................... 76
6.4.9
Method: Channel openBasicChannel(byte[] aid, Byte P2) ........................................................... 78
6.4.9.1
Conformance Requirements ................................................................................................ 78
6.4.9.2
Initial Conditions .................................................................................................................. 79
6.4.9.3
Test Procedure .................................................................................................................... 79
6.4.10
Method: Channel openLogicalChannel(byte[] aid, Byte P2) ........................................................ 79
6.4.10.1
Conformance Requirements .............................................................................................. 79
6.4.10.2
Initial Conditions ................................................................................................................. 80
6.4.10.3
Test Procedure ................................................................................................................... 80
6.4.11
Method: Channel openLogicalChannel(byte[] aid, Byte P2) – Extended logical channels .......... 81
6.4.11.1
Conformance Requirements .............................................................................................. 81
6.4.11.2
Initial Conditions ................................................................................................................. 81
6.4.11.3
Test Procedure ................................................................................................................... 81
6.5
Class: Channel .................................................................................................................................... 81
6.5.1
Method: Void close() .................................................................................................................... 82
6.5.1.1
Conformance Requirements ................................................................................................ 82
6.5.1.2
Initial Conditions .................................................................................................................. 82
6.5.1.3
Test Procedure .................................................................................................................... 82
6.5.2
Method: Boolean isBasicChannel() .............................................................................................. 84
6.5.2.1
Conformance Requirements ................................................................................................ 84
6.5.2.2
Initial Conditions .................................................................................................................. 84
6.5.2.3
Test Procedure .................................................................................................................... 85
6.5.3
Method: Boolean isClosed() ......................................................................................................... 85
6.5.3.1
Conformance Requirements ................................................................................................ 85
6.5.3.2
Initial Conditions .................................................................................................................. 85
6.5.3.3
Test Procedure .................................................................................................................... 85
6.5.4
Method: Byte[] getSelectResponse() ........................................................................................... 86
6.5.4.1
Conformance Requirements ................................................................................................ 86
6.5.4.2
Initial Conditions .................................................................................................................. 86
6.5.4.3
Test Procedure .................................................................................................................... 88
6.5.5
Method: Session getSession() ..................................................................................................... 91
6.5.5.1
Conformance Requirements ................................................................................................ 91
剩余116页未读,继续阅读
资源评论


玩科技猿猴
- 粉丝: 6
- 资源: 6
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


安全验证
文档复制为VIP权益,开通VIP直接复制
