Using KeyStore class instead of Keytool