简体   繁体   English

用于智能卡签名的跨平台Java Applet

[英]Cross platform Java Applet for Signing with a Smart Card

I'm trying to validate a smart card. 我正在尝试验证智能卡。 I read this tutorial , and everything is working. 我阅读了本教程 ,一切正常。 But I'm working in a big project, that will be used by a lot of companies, different smart cards and different OS. 但是我正在做一个大型项目,许多公司,不同的智能卡和不同的操作系统都将使用该项目。

My problem: There is a driver that supports all smart cards (A1 and A3) manafucturers? 我的问题:有一个支持所有智能卡(A1和A3)制造商的驱动程序吗? Because this example is using the manufacturer's driver in hardcode, with this line: 因为此示例使用硬编码使用制造商的驱动程序,所以使用以下行:

library = c:\windows\system32\pkcs201n.dll

There is a way to load a generic library, that support differents manufacturers and differents operating systems? 有没有一种方法可以加载支持不同制造商和操作系统的通用库?

Each hardware vendor provides their own PKCS#11 driver for their particular device. 每个硬件供应商都为其特定设备提供了自己的PKCS#11驱动程序。 While PKCS11 is a generic interface, different implementations have different requirements in the set of object attributes and in other function parameters. 虽然PKCS11是通用接口,但是不同的实现对对象属性集和其他功能参数有不同的要求。 So creation of universal drivers is not possible. 因此,不可能创建通用驱动程序。 Your software needs to ask the user for a path to the driver DLL. 您的软件需要询问用户驱动程序DLL的路径。

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

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