privateKey =
new RSAPrivateKey(cryptoSystem, new MyCryptoTokenData(
smartCardID, ID_PKI));
keyStoreDataArray[0] =
new CryptoSmartCardKeyStoreData(null, ID_CERT, privateKey,
null, KeyStore.SECURITY_LEVEL_HIGH, certificate,
null, null, 0);
stepProgressDialog(1);
privateKey =
new RSAPrivateKey(cryptoSystem, new MyCryptoTokenData(
smartCardID, SIGNING_PKI));
keyStoreDataArray[1] =
new CryptoSmartCardKeyStoreData(null, SIGNING_CERT,
privateKey, null, KeyStore.SECURITY_LEVEL_HIGH,
certificate, null, null, 0);
stepProgressDialog(1);
privateKey =
new RSAPrivateKey(cryptoSystem, new MyCryptoTokenData(
smartCardID, ENCRYPTION_PKI));
keyStoreDataArray[2] =
new CryptoSmartCardKeyStoreData(null, ENCRYPTION_CERT,
privateKey, null, KeyStore.SECURITY_LEVEL_HIGH,
certificate, null, null, 0);
stepProgressDialog(1);