简体   繁体   English

Java读卡器终端

[英]Java Card Reader Terminal

I am new to Java Card development but until now I am using the Java Card development kit 2.2 and doing the Samples. 我是Java Card开发的新手,但是直到现在,我一直在使用Java Card开发套件2.2并进行示例。

I try to understand how can I actually use the java card Applets. 我试图了解如何实际使用Java卡小程序。 For example I have the classic "Wallet" applet that is a wallet application managing credit and also debit operations on the Card. 例如,我有一个经典的“钱包”小程序,它是一个钱包应用程序,可以管理信用卡以及卡上的借记操作。 I use the jcwde tool to run the applets on the emulator. 我使用jcwde工具在模拟器上运行小程序。 The APDU tool is sending apdu messages to the card and the card responds. APDU工具正在向卡发送apdu消息,并且卡会做出响应。

Now my question is on practice how can I use this card? 现在我的问题是练习如何使用此卡? The apdu istructions that the terminal should send are predefined according to the methods the applet implements. 终端应发送的应用程序是根据applet实现的方法预定义的。 The device that the customer should plug the card how should interact to the card? 客户应插入卡的设备应如何与卡交互? For example we don't expect the customers to send APDU commands. 例如,我们不希望客户发送APDU命令。 Is there a device with a screen that should be programmed too? 是否有带有屏幕的设备也应进行编程?

The wallet application is similar to: working with Java Card Wallet 钱包应用程序类似于: 使用Java Card Wallet

The person question here is using the same approach. 这里的人问题正在使用相同的方法。 Testing the applet using apdu messages. 使用apdu消息测试applet。 Is this the way we should test our cards? 这是我们测试卡的方式吗?

Once the card application is operational, you will want to stage it in some service. 卡应用程序运行之后,您将希望将其暂存到某些服务中。 Depending on the context, the client might be sending APDUs to it 取决于上下文,客户端可能正在向其发送APDU

  • from a local application (eg a phone app sending APDUs to the UICC) 从本地应用程序(例如,向UICC发送APDU的电话应用程序)
  • over NFC (eg a merchant point of sale sending APDUs to a Visa application within a card) 通过NFC(例如,商家销售点将APDU发送到卡中的Visa应用程序)
  • over-the-air, in a secure channel (the "credit" command would typically require that the entity sending it is authenticated, otherwise anyone can top-up their wallet) 无线传输,在安全通道中进行(“信用”命令通常要求发送该信息的实体经过身份验证,否则任何人都可以充值他们的钱包)

It really comes down to what you are trying to build. 这实际上取决于您要构建的内容。 In most cases you will have to build some reader code, most likely using PC/SC to send APDUs. 在大多数情况下,您将必须构建一些阅读器代码,最有可能使用PC / SC发送APDU。 Then the beauty of Javacard is that it lets you define your business rules within the card, that is within a tightly secured environment. 然后,Javacard的优点在于,它可以让您在严格安全的环境中定义卡中的业务规则。 Just make sure you can trust your inputs. 只要确保您可以信任您的输入即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM