Hello security-dev,

Using the java.security.KeyStore API is there anyway to force validation of the 
smartcard pin (on Windows)?  

When testing it seems like the KeyStore.load method ignores the password 
parameter as I can pass invalid pins and it will not throw an error. 
It seems to just using the existing user session from when the workstation was 
unlocked to gain access to the certificates on the smartcard.  
I've tried to use the KeyStore.CallbackHandlerProtection too but it doesn't see 
to force validation of the pin either.  

Maybe there is something I'm missing?

What would be ideal is if the KeyStore.load was passed null or empty password 
the existing session was used otherwise if a pin was given force a 
re-validation of the given pin before loading the store.

Thanks,

Jason

Reply via email to