GnuPrivateKeyring kr2 = new GnuPrivateKeyring();
FileInputStream fis = new FileInputStream(ksFile);
attributes.clear();
attributes.put(IKeyring.KEYRING_DATA_IN, fis);
attributes.put(IKeyring.KEYRING_PASSWORD, STORE_PASSWORD);
kr2.load(attributes);
fis.close();
// retrieve the same private key
PrivateKey pk3 = (PrivateKey) kr2.getPrivateKey(ALIAS, KEY_PASSWORD);
// check that it is still the same