简体   繁体   English

数字签名智能卡错误的引脚反馈

[英]digitial signature smart card wrong pin feedback

I have everything working just fine. 我一切正常。 The signing class is implemented as a SwingWorker(just for added info). 签名类被实现为SwingWorker(仅用于添加的信息)。 Signing process is done via smart card and WINDOWS-MY keystore. 签名过程通过智能卡和WINDOWS-MY密钥库完成。

My question is this: 我的问题是这样的:

When a "sign" button is clicked, signing process starts and I get the insert PIN window. 单击“签名”按钮后,签名过程开始,我得到插入PIN窗口。 If for some reason I didn't choose the right file for signing or something like that and i want to go back I press CANCEL. 如果由于某种原因我没有选择正确的文件进行签名或类似的操作,而我想返回,请按CANCEL。 How can I catch that event, that a cancel button was pressed in the insert PIN panel. 我如何捕获该事件,即在“插入PIN”面板中按下了“取消”按钮。

thanks 谢谢

Usually you cannot. 通常你不能。 The window you are seeing is more than likely incorporated in the .dll that plugs into the Microsoft CAPI framework. 您看到的窗口很有可能包含在插入Microsoft CAPI框架的.dll中。 The entering of the PIN is likely have been abstracted out of the CAPI interface, which means you have little to no control over it. PIN的输入可能已经从CAPI接口中抽象出来了,这意味着您几乎无法控制它。

As indicated with the "usually", "more than like" etc. this is an educated guess, drawn from experience. 如“通常”,“不喜欢”等所示,这是根据经验得出的有根据的猜测。

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

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