#### Oracle OpenWorld 2017
- [オフィシャルサイト](https://www.oracle.com/openworld/index.html)
- [Oracle Open World 2017 - セッションカタログ](https://events.rainfocus.com/catalog/oracle/oow17/catalogoow17)
#### JavaOne 2017
- [オフィシャルサイト](https://www.oracle.com/javaone/index.html)
- [JavaOne 2017](https://events.rainfocus.com/catalog/oracle/oow17/catalogjavaone17)
# 世界に広がる国際標準規格「NFC」とは?
Seagate 製 HDD 7200RPM 500GB 動作品
# 主要用語
## NFC : FeliCaとMIFAREの上位互換の位置付け
## MIFARE : by NXPセミコンダクターズ(旧フィリップス). ISO/IEC 14443 TypeA
## FeliCa : by Sony
## ISO/IEC 14443 : Contactless Card(非接触型カード)の標準規格
* ISO/IEC 7816 : Contact Card(接触型カード)の標準規格
# eCall基本
## eCallとは
- 車両緊急通報システム。運転者や同乗者が意識を失うような深刻な自動車事故の際にも、車両自身が緊急通報を自動的に行うシステム。
- EUでは、2018/04から全ての車両で義務化。
- ロシアではERA-GLONASSというeCallと類似システム
## EC - eCall in all new cars from April 2018
https://ec.europa.eu/digital-single-market/news/ecall-all-new-cars-april-2018
# 各社の動向
## ボッシュが欧州発の緊急通報サービス「eCall」を日本向けに提供、2016年末から
http://monoist.atmarkit.co.jp/mn/articles/1606/09/news036.html
## Infineon - eCall通信モジュール
Secure Element搭載
https://www.infineon.com/cms/jp/applications/automotive/car-security/ecall/
# NFC World - Java Card News
https://www.nfcworld.com/technology/javacard/
# NFC World - Embedded secure element (eSE) News
https://www.nfcworld.com/technology/embedded-secure-element-ese/
# Oberthur Technologies
* Safran(Morpho)買収
## DAIMLER CHOOSES OT TO SECURELY CONNECT ITS CAR FLEET
http://www.oberthur.com/daimler-chooses-ot-to-securely-connect-its-car-fleet/?nabt=0
## OT Japan
https://japan.zdnet.com/article/35094344/
- DaimlerのMercedes-BenzのEクラスにOTのeSIM搭載
## Itelma(Russia Tier 1 Auto Equipment Supplier) - ERA-GLONASS(eCall in Russia)
http://www.oberthur.com/itelma-selects-ot-to-deliver-connectivity-for-ecall-and-commercial-services/?nabt=0
## TeliaSonera - Samsung Gear S2
http://www.oberthur.com/teliasonera-selects-ot-to-connect-samsung-gear-s2/?nabt=0
# Giesecke & Devrient
## BMW - Trusted eSIM Management Partner
https://contactlessintelligence.com/2016/10/20/giesecke-devrient-delivers-solution-for-bmw-groups-connected-drive-services/
## Rogers - Rogers introduces "one SIM to rule them all"
https://www.itworldcanada.com/article/rogers-introduces-one-sim-to-rule-them-all/381728
# Gemalto
## PSA Group to equip millions of connected cars with Gemalto M2M solution
http://www.gemalto.com/press/Pages/PSA-Group-to-equip-millions-of-connected-cars-with-Gemalto-M2M-solution.aspx
## Orange joins forces with Gemalto to launch the Samsung Gear S2 Classic 3G in France
http://www.gemalto.com/press/Pages/Orange-joins-forces-with-Gemalto-to-launch-the-first-watch-with-a-built-in-SIM-on-the-French-market-the-Samsung-Gear-S2.aspx
# Infineon
## TPM - OPTIGA Trust family
https://www.infineon.com/cms/jp/product/security-and-smart-card-solutions/optiga-embedded-security-solutions/optiga-tpm/channel.html?channel=5546d462503812bb015066de24291768
https://www.infineon.com/cms/en/product/promopages/iot-demos/
# STMicroelectronics
## STSAFE-J
http://www.st.com/en/secure-mcus/authentication-secure-iot.html
# NXP
## A710X_FAMILY: Secure authentication microcontroller
https://www.nxp.com/products/identification-and-security/authentication/secure-authentication-microcontroller:A710X_FAMILY
# Safran Identity & Security(Morpho)
## Safran selected to support Millicom in driving IoT in Latin America
https://www.morpho.com/en/media/20160905_safran-selected-support-millicom-driving-iot-latin-america
# DNP
## 大日本印刷、コネクシオ、アットマークテクノ 高セキュリティなIoT環境を実現するゲートウエー端末を発売
http://www.dnp.co.jp/news/10122753_2482.html
# Wiki - Smart card application protocol data unit
https://en.wikipedia.org/wiki/Smart_card_application_protocol_data_unit
# OpenSCDP - ADPU
https://www.openscdp.org/scripts/tutorial/emv/reademv.html
# Java Card Technology for Smart Cards - Chap2
https://www.safaribooksonline.com/library/view/java-cardtm-technology/0201703297/ch02.html
# 必要ドキュメント
- Java Card 3 Platform Development Kit User Guide, Classic Edition
https://docs.oracle.com/javacard/3.0.5/guide/index.html
# 環境の用意
* Windowsでサンプルを動かす場合、以下の3つだけ!
- JDK 8
http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Java Card Development Kit
https://www.oracle.com/technetwork/java/embedded/javacard/overview/index.html
- Eclipse
# Samples
https://docs.oracle.com/javacard/3.0.5/guide/running_the_classic_applets_samples.htm#JCUGC140
1. HelloWorld : * Hello WorldというよりはただのEchoプログラム
2. Channels
3. Service
4. Utility
5. Wallet
6. ObjectDeletion
7. PhotoCard
8. RMIPurse
9. StringHandlingApp
10. SecureRMIPurse
11. SignatureMessageRecovery
# HelloWorld実行例 (helloworld.scr)
## helloworld.scr
output on;
//create applet instance
0x80 0xB8 0x00 0x00 0x0c 0x0a 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0xc 0x01 0x01 0x00 0x7F;
// Select HelloWorld //aid/A000000062/03010C0101
0x00 0xa4 0x04 0x00 0x0a 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0xc 0x01 0x01 0x7F;// send any APDU. HelloWorld will echo
0x80 0x10 0x01 0x02 0x05 0x01 0x02 0x03 0x04 0x05 0x7F;
## 実行結果
CMD>output on;
APDU|OUTPUT ON;
//create applet instance
0x80 0xB8 0x00 0x00 0x0c 0x0a 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0xc 0x01 0x01 0x00 0x7F;
APDU|CLA: 80, INS: b8, P1: 00, P2: 00, Lc: 0c, 0a, a0, 00, 00, 00, 62, 03, 01, 0c, 01, 01, 00, Le: 00, SW1: 64, SW2: 44
// Select HelloWorld //aid/A000000062/03010C0101
0x00 0xa4 0x04 0x00 0x0a 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0xc 0x01 0x01 0x7F;
APDU|CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 0a, a0, 00, 00, 00, 62, 03, 01, 0c, 01, 01, Le: 00, SW1: 90, SW2: 00
// send any APDU. HelloWorld will echo
0x80 0x10 0x01 0x02 0x05 0x01 0x02 0x03 0x04 0x05 0x7F;
APDU|CLA: 80, INS: 10, P1: 01, P2: 02, Lc: 05, 01, 02, 03, 04, 05, Le: 0a, 80, 10, 01, 02, 05, 01, 02, 03, 04, 05, SW1: 90, SW2: 00
# SIMサイズの大きさ
- 標準SIM (1FF)
- Micro SIM(3FF): 多くの格安スマホで採用
- Nano SIM(4FF): iPhone 5以降、Galaxy S7
# SIM情報
## SIMカードのサイズと選び方・・・
## SIMカードの進化
https://blog.kaspersky.co.jp/sim-card-history/9934/
## SIMカード製造元
- DNP(大日本印刷) : 製造番号の先頭2桁がDN
- 日本ジェムプラス : 製造番号の先頭2桁がGE
- ジェムアルト : 製造番号の先頭2桁がAX
- ギーゼッケ アンド デブリエント : 製造番号の先頭2桁がGD
- 東芝 : 製造番号の先頭2桁がTS
# Java Card
- Wiki - Java Card
https://en.wikipedia.org/wiki/Java_Card
- Java Card technology
http://www.oracle.com/technetwork/java/embedded/javacard/overview/index.html
- JAVA CARD DOWNLOADS
http://www.oracle.com/technetwork/java/embedded/javacard/downloads/default-1970005.html
- Java Card Platform, Classic Edition 3.0.5 Documentation
https://docs.oracle.com/javacard/3.0.5/index.html
- Java Card Platform, Classic Edition 3.0.5 API
https://docs.oracle.com/javacard/3.0.5/api/index.html
# 関連国際規格
## ISO 7816 : Smart Cardの規格
https://www.ipa.go.jp/security/enc/smartcard/node16.html
ISO 7816-1 : Physical characteristics
ISO 7816-2 : Dimensions and location of the contacts
ISO 7816-3 : Electronic signals and transmission protocols
ISO 7816-4 : Industry commands for interchange
## ISO 24727 : interoperability of smart cards
https://en.wikipedia.org/wiki/ISO/IEC_24727
## GlobalPlatform
https://en.wikipedia.org/wiki/GlobalPlatform
http://www.globalplatform.org/
## EMVCo
女児パンツ
American Express, Discover, JCB, MasterCard, UnionPay, Visa
元々はEMV (Europay, MasterCard, Visa)からスタート
https://en.wikipedia.org/wiki/EMV
## SIM Alliance
## ETSI/3GPP
http://www.etsi.org/technologies-clusters/technologies/smart-cards