Hi I am using SUN PKCS11
implementation to perform operations with PKI certificates in USB cryptotokens
I created a provider object for the particular USB token and then call
Keystore ks = KeyStore.getInstance(PKCS11_KEYSTORE_TYPE,prov);
Then I load it with
keyStore.load(null, PIN.toCharArray())
PIN is the user entered PIN for the particular certificate
Now different cryptotokens behave differently when the load fails because of a Wrong PIN. Keystore::load
throws an IOException when PIN is wrong however,
I want to show an PIN error message for all USB types, but if I add my own dialog, then on WatchData I end up getting 2 dialogs (1 from Watchdata & 1 of my own).
Is there a way to figure out whether the error message has already been shown? Or alternately is there a way to suppress the error dialog on dongles which show their own?
The behavior is token-specific because the standard doesn't specify, how exactly the drivers must behave. So showing the window is beyond your control. The best you can do is contact the vendor of the specific device and ask them for assistance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With