I am using the Siemens CardOS API driver as a PKCS # 11 driver to download certificates from a PKI card as follows:
char[] pin = "123456".toCharArray(); KeyStore.PasswordProtection pp = new KeyStore.PasswordProtection(pin); KeyStore keyStore = KeyStore.Builder.newInstance("PKCS11", Security.getProvider("SunPKCS11-verinice"), pp).getKeyStore(); keyStore.load(null,pin); keyStore.getKey("key 1", pin); keyStore.getKey("key 2", pin);
The driver asks for a PIN for each key, although I pass it as a parameter. Is there any other way to pass PIN by API? Is there any "PIN cache" that I can activate?
source share