Blackberry 上的 JSR 177 支持
我一直在尝试通过 APDU 交换与 SIM 应用程序进行交互。为了交换 APDU,我必须通过 Connector.open() API 创建 APDUConnection,但是这个特定的 API 会抛出一个 IO 异常,指出“此平台不支持 JSR 177”,我不知道是否会发生这种情况,因为我在模拟器或者黑莓设备是否也不支持它。
我想知道,有人成功地与 Blackberry 上的 SIM 应用程序进行交互吗?如果是的话,有什么方法可以做到呢?如果我可以实现 JSR 177,是否可以向 Blackberry SDK 添加扩展?如何扩展 SDK 以包含此类扩展?我真的很感谢你们的任何意见。提前致谢。
I have been trying to interact with SIM application through APDU exchanges. For exchanging APDUs, I had to create an APDUConnection through Connector.open() API, but this particular API throws up an IO exception stating "JSR 177 is not supported on this platform", I dont know whether this happens because I test this on simulator or whether it's not supported on Blackberry devices as well.
I would like to know, has anyone been successful interacting with SIM apps on Blackberry? If yes, what's the way to do it? Is it possible to add extensions to the Blackberry SDK, in case if I could implement JSR 177? How do I extend the SDK to include such extensions? I really appreciate any inputs from you folks. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JSR 177 最常用于与 Secure Elements 和 UICC 进行通信。 JSR 177 无法在 BlackBerry 模拟器上运行,因为它不支持模拟所需的硬件。如果您想添加 NFC 模拟,则需要编辑模拟器并按照提供的说明进行操作
我建议您阅读 BlackBerry NFC Primer 并具有一些交互智能卡应用程序的知识。
可以在 BlackBerry 设备上使用 JSR 177,但是为此,您必须使用 NCFR 或 RESE 签名对应用程序进行签名才能访问 API。此签名只能通过 BlackBerry 的应用程序获得。根据您在应用程序中使用的 API,您可能需要两个或其中一个签名,但是如果您想与 SIM 进行通信,我相信您只需要 NFCR 签名。
下面是如何创建 JSR 177 连接的简短(未经测试)示例:
在该示例中,接收到的 R-APDU 将是从智能卡环境中的应用程序发送的数据字节数组。
JSR 177 is mostly commonly used for communicating with Secure Elements and UICC. JSR 177 will not work on the BlackBerry simulator because it does not support simulating the required hardware. If you want to add NFC simulation, you will need to edit the simulator and follow instructions provided here. I have not completed these instructions so I do not know if it is possible to simulate a JSR 177 connection to a SIM. From the instructions provided within the link it states, "The BlackBerry Smartphone Simulator simulates only insecure passive communication."
I advise you read BlackBerry NFC Primer and have some knowledge of interacting Smart Card applications.
It is possible to use JSR 177 on a BlackBerry device however in order to do so you must sign your application with the NCFR or RESE Signatures to be able to access the API. This signature can only be obtained by an application to BlackBerry. You may require both or one of the signatures based upon the APIs you use within your application, however if you want to communicate with the SIM I believe you will only need the NFCR signature.
Below is an short (untested) example of how to create a JSR 177 connection:
In the example the R-APDU received will be a byte array of data sent from the application within smart card enviroment.