return (String[]) privateKeys.toArray(new String[privateKeys.size()]);
}
public void unlockPrivateKey(String alias, char[] storePassword, char[] password) throws KeystoreException {
if (storePassword == null && keystorePassword == null) {
throw new KeystoreException("storePassword is null and keystore is locked for availability.");
}
if(storePassword != null)
getPrivateKey(alias, storePassword, password);
else
getPrivateKey(alias, keystorePassword, password);