J2ME中有沒(méi)有方法讀取SIM卡中的內(nèi)容?
Posted on 2005-11-08 13:58 讓變化成為計(jì)劃的一部分 閱讀(892) 評(píng)論(0) 編輯 收藏 所屬分類(lèi): J2ME一般性的答案是:可以的。只不過(guò)現(xiàn)在的手機(jī)尚且不支持此標(biāo)準(zhǔn)。
更多的信息:
對(duì)于JavaCard這種東西,MIDP2.0中擴(kuò)展了一個(gè)叫做Security and Trust Services API for J2ME (SATSA); JSR 177的東西,具體信息參見(jiàn)http://java.sun.com/products/satsa/。
The Security and Trust Services API for J2ME (SATSA) 擴(kuò)展了J2ME平臺(tái)的安全特性,它增加了密碼API,數(shù)字簽名以及用戶(hù)身份認(rèn)證管理。這個(gè)規(guī)范也定義了如何和SmartCard交互。
但是估計(jì)這種東西明年以?xún)?nèi)可能才有設(shè)備支持。
如果手機(jī)不支持,也許可以將SATSA classes加入自己的midlet中,當(dāng)然由于SATSA classes override CLDC and MIDP classes,你事先需要用Proguard將SATSA混淆。當(dāng)然,最好你等待有設(shè)備真的支持這個(gè)。
建議大家事先閱讀
Instructions on SATSA developer's guide (http://java.sun.com/j2me/docs/satsa-dg/:
SATSA Developer's Guide
SATSA Reference Implementation
1.0
December 2004
satsa-1_0-windows.zip,Windows Platform - Security and Trust Ser
vices API for J2ME (SATSA) 1.0的二進(jìn)制包,你可以從sun上下載。