code: static boolean isSupported(int index) {
          if ((index <= 0) || (index >= NAMED_CURVE_OID_TABLE.length)) {
              return false;
          }
          if (fips == false) {
              // in non-FIPS mode, we support all valid indices
              return true;
          }
          return DEFAULT.contains(index);
      }
docs: Test whether we support the curve with the given index.