public static KeyPair buildECKeyPairFromJwk(final String json) {
        CommonHelper.assertNotBlank("json", json);

        try {
            val ecKey = ECKey.parse(json);
            return ecKey.toKeyPair();
        } catch (final JOSEException | ParseException e) {
            throw new TechnicalException(e);
        }
    }
Build the EC key pair from the JWK JSON.

@param json the json
@return the key pair
pac4j-jwt/src/main/java/org/pac4j/jwt/util/JWKHelper.java