@Test void testInvalidRSAKey() { assertNull(OAuthUtils.buildRSAPublicKey("EC", BigInteger.ONE, BigInteger.TEN)); }
public static Key buildRSAPublicKey(final String keyType, final BigInteger modulus, final BigInteger exponent) { try { return KeyFactory.getInstance(keyType).generatePublic(new RSAPublicKeySpec(modulus, exponent)); } catch (final NoSuchAlgorithmException | InvalidKeySpecException ex) { LOGGER.error("Error generating RSA Key from JWKS entry", ex); } return null; }
OAuthUtils { public static Key buildRSAPublicKey(final String keyType, final BigInteger modulus, final BigInteger exponent) { try { return KeyFactory.getInstance(keyType).generatePublic(new RSAPublicKeySpec(modulus, exponent)); } catch (final NoSuchAlgorithmException | InvalidKeySpecException ex) { LOGGER.error("Error generating RSA Key from JWKS entry", ex); } return null; } }
OAuthUtils { public static Key buildRSAPublicKey(final String keyType, final BigInteger modulus, final BigInteger exponent) { try { return KeyFactory.getInstance(keyType).generatePublic(new RSAPublicKeySpec(modulus, exponent)); } catch (final NoSuchAlgorithmException | InvalidKeySpecException ex) { LOGGER.error("Error generating RSA Key from JWKS entry", ex); } return null; } private  OAuthUtils(); }
OAuthUtils { public static Key buildRSAPublicKey(final String keyType, final BigInteger modulus, final BigInteger exponent) { try { return KeyFactory.getInstance(keyType).generatePublic(new RSAPublicKeySpec(modulus, exponent)); } catch (final NoSuchAlgorithmException | InvalidKeySpecException ex) { LOGGER.error("Error generating RSA Key from JWKS entry", ex); } return null; } private  OAuthUtils(); static Principal withWebIdClaim(final Claims claims); static Principal withSubjectClaim(final Claims claims); static Authenticator buildAuthenticatorWithJwk(final String location); static Key buildRSAPublicKey(final String keyType, final BigInteger modulus,
            final BigInteger exponent); static Authenticator buildAuthenticatorWithSharedSecret(final String key); static Authenticator buildAuthenticatorWithTruststore(final String keystorePath,
            final char[] keystorePassword, final List<String> keyids); }
OAuthUtils { public static Key buildRSAPublicKey(final String keyType, final BigInteger modulus, final BigInteger exponent) { try { return KeyFactory.getInstance(keyType).generatePublic(new RSAPublicKeySpec(modulus, exponent)); } catch (final NoSuchAlgorithmException | InvalidKeySpecException ex) { LOGGER.error("Error generating RSA Key from JWKS entry", ex); } return null; } private  OAuthUtils(); static Principal withWebIdClaim(final Claims claims); static Principal withSubjectClaim(final Claims claims); static Authenticator buildAuthenticatorWithJwk(final String location); static Key buildRSAPublicKey(final String keyType, final BigInteger modulus,
            final BigInteger exponent); static Authenticator buildAuthenticatorWithSharedSecret(final String key); static Authenticator buildAuthenticatorWithTruststore(final String keystorePath,
            final char[] keystorePassword, final List<String> keyids); static final String WEBID; static final String WEBSITE; }