This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private PublicKey convertKey(AzurePublicKey azKey) { | |
| PublicKey publicKey = null; | |
| BigInteger modulus = new BigInteger(1, Base64.getUrlDecoder().decode(azKey.getN())); | |
| BigInteger exponent = new BigInteger(1, Base64.getUrlDecoder().decode(azKey.getE())); | |
| try { | |
| publicKey = KeyFactory.getInstance("RSA").generatePublic(new RSAPublicKeySpec(modulus, exponent)); | |
| // load cert |