从Web浏览器的智能卡读写器的访问? [英] Smartcard reader access from a web browser?

查看:1017
本文介绍了从Web浏览器的智能卡读写器的访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能从ActionScript,JavaScript,或者任何脚本运行其中的访问智能卡读取器连接到计算机从同一台机器上运行的Web浏览器,IE浏览器?

is it possible to access smartcard reader connected to a computer from a web browser running on the same machine, i.e. from an ActionScript, JavaScript or whatsoever script running therein?

例如,我读了一些有关的的flash.external.ExternalInterface 的类动作。它可用于访问智能卡读卡器或者是沙盒坚不可摧?

For example, I read something about the flash.external.ExternalInterface class in ActionScript. Can it be used for accessing a smartcard reader or is the Sandbox impenetrable?

在前进,
谢谢 扬

Thanks in advance,
Jan

推荐答案

问:是否有可能访问智能卡读取器连接到计算机从同一台计算机

Q: is it possible to access smartcard reader connected to a computer from a web browser running on the same machine?

答:是的,这是可能的。我能做到这一点通过使用签名的Java小程序。 Java小程序需要进行签名,因为它会要求用户授予权限访问系统文件/硬件(如同让一个小程序写/编辑/删除一个文本文件给你)。

A: Yes, it is possible. I was able to do that by using a signed JAVA applet. The java applet needs to be signed since it will require user to grant permission to access system files/hardware(same as letting an applet write/edit/delete a text file for you).

为什么java吗?智能卡阅读器我已经采用了一个JAVA的API,它也对访问它用java例子。但这些例子codeD中摇摆。 (像一个独立的桌面应用程序),我所做的只是在移植的Java Swing code到小程序在浏览器上。我成功地用这个小程序来进行登录,并要求智能卡,用户名和密码在网站/ web应用程序注销。 pretty的安全,我会说。

Why java? the smart card reader I used already has a JAVA API, it also have examples on accessing it using java. But the examples are coded in swing. (like a standalone desktop application) What I did is simply porting the java swing code to applet on a browser. I successfully used this applet to make a login and log out on a website/webapp by requiring smart cards, username and password. Pretty secure I would say.

该人士$ ​​C $ C?虽然我想与大家分享,但我不能不对公司合同不能共享code。只要找到一个样本智能卡访问使用Java,只是将它移植到小程序(适用于网络)

The source code? As much as I would like to share it, but I'm bound on a company contract to not share the code. Just find a sample smart card access using java and just port it to applet(for web)

我希望这有助于

这篇关于从Web浏览器的智能卡读写器的访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆