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