I'm wondering if it's possible to recover a RSA public key that I have converted to byte array previously.
byte[] keyBytes = publicKey.getEncoded();
Thanks for the help.
PublicKey publicKey =
KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(bytes));
For more info see this tutorial