如何从DialogCallbackHandler获取密码
我正在与包含数字证书的金雅拓智能卡合作。我使用 DialogCallbackHandler 传递 PIN 以便能够加载密钥库:
KeyStore.Builder ksBuilder = KeyStore.Builder.newInstance("PKCS11", provider, new KeyStore.CallbackHandlerProtection(new DialogCallbackHandler()));
KeyStore ks = ksBuilder.getKeyStore();
ks.load(null, null);
问题是应用程序要求其必须签署的每个文档提供 PIN,但它不起作用。有什么方法可以兑现此 PIN 码吗?
i'am working with gemalto SmartCard witch contain a digital certificate. i used DialogCallbackHandler to pass the PIN to have the possibility to load the keystore:
KeyStore.Builder ksBuilder = KeyStore.Builder.newInstance("PKCS11", provider, new KeyStore.CallbackHandlerProtection(new DialogCallbackHandler()));
KeyStore ks = ksBuilder.getKeyStore();
ks.load(null, null);
The trouble is that the application is asking for the PIN for each document it has to sign, and it is not operative. is there any method to cash this PIN.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论