Ok for grins ... try this
- base64 decode the key data to get a byte array (byte[])
- Create a new X509EncodedKeySpec using the byte array
- Get an instance of KeyFactory using KeyFactory.getInstance("RSA") assuming RSA here
- call the method generatePublic(KeySpec) with the X509EncodedKeySpec
- Result /should/ be a public key for your usage.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…