java keystore get private key code example
Example: java read public key from keystore
KeyStore ks = KeyStore.getInstance("AndroidKeyStore");
ks.load(null);
PublicKey publicKey = ks.getCertificate("aliasYouChose").getPublicKey();
KeyStore ks = KeyStore.getInstance("AndroidKeyStore");
ks.load(null);
PublicKey publicKey = ks.getCertificate("aliasYouChose").getPublicKey();